提交 e609a6f4 编写于 作者: A Alex Dima

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

上级 6c058db1
......@@ -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({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册