久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

    <bdo id='wZY5v'></bdo><ul id='wZY5v'></ul>

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

  • <tfoot id='wZY5v'></tfoot>
    <legend id='wZY5v'><style id='wZY5v'><dir id='wZY5v'><q id='wZY5v'></q></dir></style></legend>

        每次 Gulpfile 更改后如何重新啟動 Gulp?

        How can Gulp be restarted upon each Gulpfile change?(每次 Gulpfile 更改后如何重新啟動 Gulp?)
        <tfoot id='0OQTs'></tfoot>
      1. <legend id='0OQTs'><style id='0OQTs'><dir id='0OQTs'><q id='0OQTs'></q></dir></style></legend>
          • <bdo id='0OQTs'></bdo><ul id='0OQTs'></ul>

                <tbody id='0OQTs'></tbody>

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

                  <small id='0OQTs'></small><noframes id='0OQTs'>

                  本文介紹了每次 Gulpfile 更改后如何重新啟動 Gulp?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在開發一個 Gulpfile.可以讓它一改變就重新啟動嗎?我正在使用 CoffeeScript 開發它.Gulp 是否可以監視 Gulpfile.coffee 以便在保存更改時重新啟動?

                  I am developing a Gulpfile. Can it be made to restart as soon as it changes? I am developing it in CoffeeScript. Can Gulp watch Gulpfile.coffee in order to restart when changes are saved?

                  推薦答案

                  您可以創建一個 taskgulp.watch 用于 gulpfile.js 并簡單地 spawn 另一個 gulp child_process.

                  You can create a task that will gulp.watch for gulpfile.js and simply spawn another gulp child_process.

                  var gulp = require('gulp'),
                      argv = require('yargs').argv, // for args parsing
                      spawn = require('child_process').spawn;
                  
                  gulp.task('log', function() {
                    console.log('CSSs has been changed');
                  });
                  
                  gulp.task('watching-task', function() {
                    gulp.watch('*.css', ['log']);
                  });
                  
                  gulp.task('auto-reload', function() {
                    var p;
                  
                    gulp.watch('gulpfile.js', spawnChildren);
                    spawnChildren();
                  
                    function spawnChildren(e) {
                      // kill previous spawned process
                      if(p) { p.kill(); }
                  
                      // `spawn` a child `gulp` process linked to the parent `stdio`
                      p = spawn('gulp', [argv.task], {stdio: 'inherit'});
                    }
                  });
                  

                  我使用 yargs 來接受主要任務",一旦我們需要重新啟動.所以為了運行它,你會調用:

                  I used yargs in order to accept the 'main task' to run once we need to restart. So in order to run this, you would call:

                  gulp auto-reload --task watching-task
                  

                  要進行測試,請調用 touch gulpfile.jstouch a.css 以查看日志.

                  And to test, call either touch gulpfile.js or touch a.css to see the logs.

                  這篇關于每次 Gulpfile 更改后如何重新啟動 Gulp?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)
                    <tbody id='S4Q3R'></tbody>

                      <tfoot id='S4Q3R'></tfoot>

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

                      <i id='S4Q3R'><tr id='S4Q3R'><dt id='S4Q3R'><q id='S4Q3R'><span id='S4Q3R'><b id='S4Q3R'><form id='S4Q3R'><ins id='S4Q3R'></ins><ul id='S4Q3R'></ul><sub id='S4Q3R'></sub></form><legend id='S4Q3R'></legend><bdo id='S4Q3R'><pre id='S4Q3R'><center id='S4Q3R'></center></pre></bdo></b><th id='S4Q3R'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='S4Q3R'><tfoot id='S4Q3R'></tfoot><dl id='S4Q3R'><fieldset id='S4Q3R'></fieldset></dl></div>
                      <legend id='S4Q3R'><style id='S4Q3R'><dir id='S4Q3R'><q id='S4Q3R'></q></dir></style></legend>

                        <bdo id='S4Q3R'></bdo><ul id='S4Q3R'></ul>
                            主站蜘蛛池模板: 久久久精品视频一区二区三区 | 久草成人| 亚洲精品资源 | 国产日韩欧美一区二区 | 99精品视频免费观看 | 亚洲网站观看 | 欧美黄色网| 超碰人人做| 一级欧美 | 亚洲成人一级片 | 久久久久久www| 日日日操| 欧州一区 | 四虎成人免费电影 | 欧美成人手机在线 | 日韩av啪啪网站大全免费观看 | 7799精品视频天天看 | 91久操视频 | 久久人| 天堂在线www | 高清国产一区二区 | 成年人视频免费在线观看 | 亚洲欧美日韩精品久久亚洲区 | 婷婷久| 久久久久9999| 黄色片网此 | 古装三级在线播放 | 粉色午夜视频 | 日本一区精品 | 国产精品久久久久久av公交车 | 欧美啪啪 | 国产视频h | 国产日韩欧美精品一区二区三区 | 成人一区二区在线 | 日韩在线精品视频 | 美女露尿口视频 | 亚洲一区精品在线 | 日本久久福利 | 在线观看黄视频 | 国产精品一区2区 | 国产精品久久久久久久久久久久久 |