2018-07-07

Gulp v4 之后 task 必须传函数

fe

Tags

Gulp v4 之后 task 必须传函数

J.Gong

2018-07-07

0.21min

Gulp v4 之后 task 必须传函数

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

如链接所说,为实现并行操作,原来的

gulp.task("default", ["css", "html", "js"]);

已经改为

gulp.task("default", gulp.parallel(["css", "html", "js"]));

而如果想串行执行的话可以用gulp.series

© 2026 All rights reserved..

This website uses Astro.build, Mantine and React Bits | deployed on Vercel