Gulpjs combine two tasks into a single task

后端 未结 11 1145
攒了一身酷
攒了一身酷 2020-12-24 01:56

I currently have two tasks, that both compile sass files. I would still like to concat the two directories into separate files but it seems that it would be more maintainabl

11条回答
  •  Happy的楠姐
    2020-12-24 02:15

    With Gulp4 you can use:

    • gulp.series for sequential execution
    • gulp.parallel for parallel execution

      gulp.task('default', gulp.series('MyTask001', 'MyTask002'));
      gulp.task('default', gulp.parallel('MyTask001', 'MyTask002'));

    Article about here
    You dont need run-sequence plugin anymore
    You need install: npm install -D gulp@next

提交回复
热议问题