$ gulp --version
[14:00:20] CLI version 3.9.1
[14:00:20] Local version 3.9.1
gulp.watch is catching the same file change twice. I used to separate editors(vi and notepad) to make sure it was not the editor saving the file twice. I also tried debounceDelay and interval with on success to rid the the problem:
$ gulp watch
[13:57:27] Using gulpfile C:\git\global-spredfast-world-wall\gulpfile.js
[13:57:27] Starting 'watch'...
[13:57:27] Finished 'watch' after 8.44 ms
{ type: 'changed',
path: 'C:\\git\\global-spredfast-world-wall\\index.html' }
{ type: 'changed',
path: 'C:\\git\\global-spredfast-world-wall\\index.html' }
Using Windows 7:
gulp.watch
is catching the same file change twice. I used to separate editors(vi and notepad) to make sure it was not the editor saving the file twice. I also trieddebounceDelay
andinterval
with on success to rid the the problem: