Gulp Watch only run once
I'm using this Gulp Watch sample: https://github.com/floatdrop/gulp-watch/blob/master/docs/readme.md#starting-tasks-on-events . var gulp = require('gulp'); var watch = require('gulp-watch'); var batch = require('gulp-batch'); gulp.task('build', function () { console.log('Working!'); }); gulp.task('watch', function () { watch('**/*.js', batch(function () { gulp.start('build'); })); }); When I run it on my Windows 8 machine, it only runs the first time I change a file: C:\test>gulp watch [08:40:21] Using gulpfile C:\test\gulpfile.js [08:40:21] Starting 'watch'... [08:40:21] Finished 'watch'