Answer the question
In order to leave comments, you need to log in
Why isn't the clean:dist task running?
Hello, when executing the gulp build task, all parallel tasks are executed, but there is no clean:dist, what could be the matter?
gulp.task('clean:dist', function() {
return del.sync(['dist/**/*', '!dist/images', '!dist/images/**/*']);
});
gulp.task('build', gulp.parallel('clean:dist', ['sass', 'useref', 'images', 'fonts']));
Answer the question
In order to leave comments, you need to log in
gulp.task('clean:dist', function() {
return del(['./dist/**', '!./dist/images/**']);
});
gulp.task('build', gulp.series('clean:dist', gulp.parallel('sass', 'useref', 'images', 'fonts')));
gulp.
beforeparallel
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question