Ember:如何将UnwatchedDir与树合并/取消监视子目录?

时间:2018-10-08 08:55:04

标签: ember.js ember-cli broccolijs

我希望不监视目录的子目录(例如public)的更改。

为了取消监视目录本身,在返回之前,我正在ember-cli-build.js中执行app.trees.public = new UnwatchedDir('public')

但是我怎么才能不监视public内的子目录?

我做了以下操作,但不起作用。

var publicMinusLocales = new Funnel('public', { exclude: ['assets/locales'] });
var unwatchedLocalesTree = new Funnel(new UnwatchedDir('public/assets/locales'));
var mergedTree = new BroccoliMergeTrees([publicMinusLocales, unwatchedLocalesTree], { overwrite: true })
app.trees.public = mergedTree;

0 个答案:

没有答案