• <bdo id='G8V36'></bdo><ul id='G8V36'></ul>

      <legend id='G8V36'><style id='G8V36'><dir id='G8V36'><q id='G8V36'></q></dir></style></legend>
      1. <tfoot id='G8V36'></tfoot>

        <small id='G8V36'></small><noframes id='G8V36'>

        <i id='G8V36'><tr id='G8V36'><dt id='G8V36'><q id='G8V36'><span id='G8V36'><b id='G8V36'><form id='G8V36'><ins id='G8V36'></ins><ul id='G8V36'></ul><sub id='G8V36'></sub></form><legend id='G8V36'></legend><bdo id='G8V36'><pre id='G8V36'><center id='G8V36'></center></pre></bdo></b><th id='G8V36'></th></span></q></dt></tr></i><div id='G8V36'><tfoot id='G8V36'></tfoot><dl id='G8V36'><fieldset id='G8V36'></fieldset></dl></div>

        如何一个接一个地依次运行 Gulp 任务

        时间:2023-05-30

        <small id='RC2fD'></small><noframes id='RC2fD'>

      2. <legend id='RC2fD'><style id='RC2fD'><dir id='RC2fD'><q id='RC2fD'></q></dir></style></legend>
        <tfoot id='RC2fD'></tfoot>
          <tbody id='RC2fD'></tbody>

                • <bdo id='RC2fD'></bdo><ul id='RC2fD'></ul>
                  <i id='RC2fD'><tr id='RC2fD'><dt id='RC2fD'><q id='RC2fD'><span id='RC2fD'><b id='RC2fD'><form id='RC2fD'><ins id='RC2fD'></ins><ul id='RC2fD'></ul><sub id='RC2fD'></sub></form><legend id='RC2fD'></legend><bdo id='RC2fD'><pre id='RC2fD'><center id='RC2fD'></center></pre></bdo></b><th id='RC2fD'></th></span></q></dt></tr></i><div id='RC2fD'><tfoot id='RC2fD'></tfoot><dl id='RC2fD'><fieldset id='RC2fD'></fieldset></dl></div>

                • 本文介绍了如何一个接一个地依次运行 Gulp 任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  在这样的片段中:

                  gulp.task "coffee", ->
                      gulp.src("src/server/**/*.coffee")
                          .pipe(coffee {bare: true}).on("error",gutil.log)
                          .pipe(gulp.dest "bin")
                  
                  gulp.task "clean",->
                      gulp.src("bin", {read:false})
                          .pipe clean
                              force:true
                  
                  gulp.task 'develop',['clean','coffee'], ->
                      console.log "run something else"
                  

                  develop 任务中,我想运行 clean 并在完成后运行 coffee ,完成后运行其他内容.但我无法弄清楚.这块不行.请指教.

                  In develop task I want to run clean and after it's done, run coffee and when that's done, run something else. But I can't figure that out. This piece doesn't work. Please advise.

                  推荐答案

                  它还没有正式发布,但是即将推出的 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

                  这篇关于如何一个接一个地依次运行 Gulp 任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:由于 MIME 类型而未加载样式表 下一篇:为什么我们需要在全局和本地安装 gulp?

                  相关文章

                  最新文章

                    • <bdo id='orZ9x'></bdo><ul id='orZ9x'></ul>

                    1. <small id='orZ9x'></small><noframes id='orZ9x'>

                    2. <legend id='orZ9x'><style id='orZ9x'><dir id='orZ9x'><q id='orZ9x'></q></dir></style></legend><tfoot id='orZ9x'></tfoot>
                    3. <i id='orZ9x'><tr id='orZ9x'><dt id='orZ9x'><q id='orZ9x'><span id='orZ9x'><b id='orZ9x'><form id='orZ9x'><ins id='orZ9x'></ins><ul id='orZ9x'></ul><sub id='orZ9x'></sub></form><legend id='orZ9x'></legend><bdo id='orZ9x'><pre id='orZ9x'><center id='orZ9x'></center></pre></bdo></b><th id='orZ9x'></th></span></q></dt></tr></i><div id='orZ9x'><tfoot id='orZ9x'></tfoot><dl id='orZ9x'><fieldset id='orZ9x'></fieldset></dl></div>