Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1873 from xzyfer/faster-watcher
Browse files Browse the repository at this point in the history
Make the watcher more responsive to child changes
  • Loading branch information
xzyfer authored Jan 28, 2017
2 parents 167812b + 38fe5c6 commit 3b02804
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/node-sass
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ function watch(options, emitter) {

// Add children to watcher
graph.visitDescendents(file, function(child) {
gaze.add(child);
if (watch.indexOf(child) === -1) {
watch.push(child);
gaze.add(child);
}
});
files.forEach(function(file) {
if (path.basename(file)[0] !== '_') {
Expand Down

0 comments on commit 3b02804

Please sign in to comment.