How to run Gulp tasks sequentially one after the other

前端 未结 14 938
眼角桃花
眼角桃花 2020-11-22 13:00

in the snippet like this:

gulp.task \"coffee\", ->
    gulp.src(\"src/server/**/*.coffee\")
        .pipe(coffee {bare: true}).on(\"error\",gutil.log)
           


        
14条回答
  •  一整个雨季
    2020-11-22 13:17

    To wait and see if the task is finished and then the rest, I have it this way:

    gulp.task('default',
      gulp.series('set_env', gulp.parallel('build_scss', 'minify_js', 'minify_ts', 'minify_html', 'browser_sync_func', 'watch'),
        function () {
        }));
    

    Kudos: https://fettblog.eu/gulp-4-parallel-and-series/

提交回复
热议问题