Skip to content

Commit

Permalink
ignore all file change events if codeSync: false
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Feb 13, 2017
1 parent 2229394 commit a6bba5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ module.exports = function (bs) {
});

var coreNamespacedWatchers = fromEvent(bs.events, "file:changed")
.filter(function() { return bs.options.get("codeSync") })
.filter(function(x) { return x.namespace === "core" });

var handler = fileHandler.fileChanges(coreNamespacedWatchers, bs.options)
Expand Down

0 comments on commit a6bba5a

Please sign in to comment.