Answer the question
In order to leave comments, you need to log in
How to use gulp-watch to track exactly which file has changed?
watch('styles/*.less', function() {
gulp.start('style');
});
Answer the question
In order to leave comments, you need to log in
https://github.com/gulpjs/gulp/blob/master/docs/API.md
gulp.watch can be assigned callback(event), through event we get the event type and file path.
You are not digging there. You only want to rebuild what has really changed, right?
Everyone wants this, and it's called "incremental build". There are simple recipes, there are not so much. To get started, I recommend watching Ilya Kantor's screencast: https://learn.javascript.ru/screencast/gulp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question