gulp win32 watcher -- filter as soon as possible fs events
This commit is contained in:
parent
6c058db11e
commit
e609a6f409
|
@ -34,6 +34,12 @@ function watch(root) {
|
|||
|
||||
var changeType = line[0];
|
||||
var changePath = line.substr(2);
|
||||
|
||||
// filter as early as possible
|
||||
if (/^\.git/.test(changePath) || /(^|\\)out($|\\)/.test(changePath)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var changePathFull = path.join(root, changePath);
|
||||
|
||||
var file = new File({
|
||||
|
|
Loading…
Reference in a new issue