更新时间:2021-12-31 23:02:51
它还没有正式发布,但是即将推出的 Gulp 4.0 让您可以轻松地使用 gulp.series 执行同步任务.你可以这样做:
It's not an official release yet, but the coming up Gulp 4.0 lets you easily do synchronous tasks with gulp.series. You can simply do it like this:
gulp.task('develop', gulp.series('clean', 'coffee'))
我找到了一篇很好的博客文章,介绍了如何升级和使用这些简洁的功能:通过示例迁移到 gulp 4
I found a good blog post introducing how to upgrade and make a use of those neat features: migrating to gulp 4 by example