gulp win32 watcher -- filter as soon as possible fs events

This commit is contained in:
Alex Dima 2016-02-02 11:47:21 +01:00
parent 6c058db11e
commit e609a6f409

View file

@ -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({