0

Following task doesn't run the copyfonts and imagemin tasks inside the function body. When I call them individually they work fine.

    gulp.task('build', gulp.series('clean', function(done){ 
         gulp.parallel('copyfonts', 'imagemin');
         done();
    }));  
madmax80
  • 171
  • 1
  • 14

1 Answers1

0
gulp.task('build', gulp.series('clean', gulp.parallel('copyfonts', 'imagemin'), done =>
     done();
)); 

Just move the parallel tasks into the series call directly.

Mark
  • 143,421
  • 24
  • 428
  • 436