Answer the question
In order to leave comments, you need to log in
How to make task compile js correctly?
Hello. I use gulp + browserSync. There was a problem when minifying js files using es6 and updating js files. When updating files, you have to constantly restart gulp, which is very inconvenient. Tell me how to write a tax that will automatically compress js and update the page. Thanks a lot
Answer the question
In order to leave comments, you need to log in
Here is an example of my build https://github.com/mtvphnx/gulp-start . There is a section for tracking changes and rebooting.
Watcher himself:
function watch() {
gulp.watch('путь', 'таск');
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question