Answer the question
In order to leave comments, you need to log in
Task to update .html/.js on Gulp 4?
There is a structure:
app
---css
Answer the question
In order to leave comments, you need to log in
For your assembly will go like this watcher
:
gulp.task('watch', function(){
gulp.watch('файлы html', gulp.series('html'));
gulp.watch('файлы css', gulp.series('css'));
gulp.watch('файлы js', gulp.series('js'));
gulp.watch('файлы img', gulp.series('img'));
})
'файлы [html, css, js&img]'
write the path to the files. builder
something like this:gulp.task('build',
gulp.series(
сюда можно таск очитки dist папки засунуть, т.е. его название, типа 'clean',
gulp.parallel(
'html',
'styles',
'js',
'img'
)));
gulp.series
, and do not forget to remove all the brackets associated with this method.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question