S
S
suprascapularis692022-04-09 23:42:25
gulp.js
suprascapularis69, 2022-04-09 23:42:25

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']));


[23:34:28] The following tasks did not complete: build, clean:dist
[23:34:28] Did you forget to signal async completion?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Viktorovich, 2022-04-10
@suprascapularis69

gulp.task('clean:dist', function() {
  return del(['./dist/**', '!./dist/images/**']);
});

gulp.task('build', gulp.series('clean:dist', gulp.parallel('sass', 'useref', 'images', 'fonts')));

edited, my cant. missed gulp.beforeparallel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question