Sometimes gulp watch is not working when I save a javascript file. This is my watch task below.
gulp.task('watch', function() {
gulp.watch('./src/**/*.js', ['js']);
});
I do have a bunch of sub directories. Would it be advisable to make my watch task be more specific like:
gulp.task('watch', function() {
gulp.watch('./src/*.js', ['js']);
gulp.watch('./src/dir1/**/*.js', ['js']);
gulp.watch('./src/dir2/**/*.js', ['js']);
});