Migrating from gulp 3.0 to gulp 4.0

57 Views Asked by At

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();
    }));  
1

There are 1 best solutions below

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

Just move the parallel tasks into the series call directly.