Executing tasks in series which creates file dynamically in Gulp 4
问题 I've recently migrated from using Gulp 3 to Gulp 4. Introducing the new tasks like gulp.src() and gulp.parallel() adds more flexibility and ease of use. Here is my code attempting to execute tasks in series. Asynchronous task which creates files dynamically let css_purge_libs = async () => { var pacs = ["!bootstrap", "bulma", "animate.css"]; var paths = await fetch_resources(pacs, "bower", "css|sass"); return gulp.src(paths) .pipe(before(true, config.css.destination.temp + "/lib")()) .pipe(P