Answer the question
In order to leave comments, you need to log in
How to watch the creation of a new gulp.watch file?
Worth gulp.watch per directory. When a new file is created, gulp does not see it. How can I fix it?
gulp.task('beats-watch', function(){
gulp.watch('./beats/styles/**/*.scss', ['beats-sass']);
});
Answer the question
In order to leave comments, you need to log in
Use the chokidar or gulp-watch module .
Or you can upgrade to version 4 of gulp and use the built-in watch like you have now. Gulp 4 uses the chokidar module.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question