Commit 3b02804b by Michael Mifsud Committed by GitHub

Merge pull request #1873 from xzyfer/faster-watcher

Make the watcher more responsive to child changes
parents 167812b6 38fe5c69
...@@ -268,7 +268,10 @@ function watch(options, emitter) { ...@@ -268,7 +268,10 @@ function watch(options, emitter) {
// Add children to watcher // Add children to watcher
graph.visitDescendents(file, function(child) { graph.visitDescendents(file, function(child) {
gaze.add(child); if (watch.indexOf(child) === -1) {
watch.push(child);
gaze.add(child);
}
}); });
files.forEach(function(file) { files.forEach(function(file) {
if (path.basename(file)[0] !== '_') { if (path.basename(file)[0] !== '_') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment