我希望不监视目录的子目录(例如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;