Skip to content

Commit

Permalink
Merge pull request #47 from TimLuo465/win7/watch
Browse files Browse the repository at this point in the history
fixed #46
  • Loading branch information
Quramy authored Apr 24, 2018
2 parents d0d4b86 + 3dde0ac commit acaf849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ let main = () => {
} else {
console.log('Watch ' + filesPattern + '...');

var watcher = chokidar.watch(filesPattern);
var watcher = chokidar.watch([filesPattern.replace(/\\/g, "/")]);
watcher.on('add', writeFile);
watcher.on('change', writeFile);
}
Expand Down

0 comments on commit acaf849

Please sign in to comment.