Skip to content

Commit

Permalink
Merge pull request #390 from mozilla/fix-watching
Browse files Browse the repository at this point in the history
fix watching in node-loader
  • Loading branch information
jlongster committed Mar 10, 2015
2 parents 8ef8c47 + cde3dc5 commit 8974aa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node-loaders.js
Expand Up @@ -31,6 +31,7 @@ var FileSystemLoader = Loader.extend({
var watcher = chokidar.watch(p, { ignoreInitial: true });

watcher.on('all', function(event, fullname) {
fullname = path.resolve(fullname);
if(event === 'change' && fullname in this.pathsToNames) {
this.emit('update', this.pathsToNames[fullname]);
}
Expand Down

0 comments on commit 8974aa3

Please sign in to comment.