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

  • <small id='YNOOk'></small><noframes id='YNOOk'>

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

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

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

        當我輸入 npm start 時如何啟動 Gulp watch 任務

        How to start Gulp watch task when I type npm start(當我輸入 npm start 時如何啟動 Gulp watch 任務)
          <tbody id='38plN'></tbody>

      1. <small id='38plN'></small><noframes id='38plN'>

            • <legend id='38plN'><style id='38plN'><dir id='38plN'><q id='38plN'></q></dir></style></legend>
              <tfoot id='38plN'></tfoot>
              <i id='38plN'><tr id='38plN'><dt id='38plN'><q id='38plN'><span id='38plN'><b id='38plN'><form id='38plN'><ins id='38plN'></ins><ul id='38plN'></ul><sub id='38plN'></sub></form><legend id='38plN'></legend><bdo id='38plN'><pre id='38plN'><center id='38plN'></center></pre></bdo></b><th id='38plN'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='38plN'><tfoot id='38plN'></tfoot><dl id='38plN'><fieldset id='38plN'></fieldset></dl></div>
                  <bdo id='38plN'></bdo><ul id='38plN'></ul>
                  本文介紹了當我輸入 npm start 時如何啟動 Gulp watch 任務的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個 gulp.js 文件,其中包括:

                  I have a gulp.js file that includes:

                  gulp.task('default', ['watch']);
                  

                  哪個啟動了監視任務

                  gulp.task('watch', function(){
                    gulp.watch(productionScripts, ['autoConcat']);
                  });
                  

                  然后在 productionScripts 中對文件的任何保存更改,監視任務將連接文件.

                  Then on any saved changes to files in productionScripts, the watch task will concat the files.

                  我想做的是在我的 package.json 中,我想在我輸入 npm start 時啟動這個手表(這已經啟動了我的節點服務器).

                  What I would like to do, is in my package.json, I would like to spool up this watch when I type npm start (this already starts my node server).

                  package.json

                  package.json

                      "start": "node server.js",
                  

                  更新--------

                  Ben(b3nj4m.com),我試過你所說的.手表和服務器啟動.但是,一切都運行了兩次(可能是由于編輯器,不相關),但是當我使用 gulp 啟動它時,我確實丟失了我的服務器日志.

                  Ben(b3nj4m.com), I tried what you stated. The watch and server start up. However, everything runs twice (probably due to the editor, not related), but I do lose my server log when I start it up with gulp.

                  [15:31:18] Starting 'autoConcat'...
                  [15:31:18] Finished 'autoConcat' after 147 ms
                  [15:31:19] Starting 'autoConcat'...
                  [15:31:19] Finished 'autoConcat' after 138 ms
                  [15:31:20] Starting 'autoConcat'...
                  [15:31:20] Finished 'autoConcat' after 127 ms
                  [15:31:23] Starting 'autoConcat'...
                  

                  這就像在服務器因更改而重新啟動和級聯文件更改之間存在一個循環.

                  It's like there is a loop between the server restarting on a change, and the concatenated file changing.

                  推薦答案

                  你可以從你的 gulpfile 運行你的服務器:

                  You could run your server from your gulpfile:

                  var child = require('child_process');
                  var fs = require('fs');
                  
                  gulp.task('default', ['server', 'watch']);
                  
                  gulp.task('server', function() {
                    var server = child.spawn('node', ['server.js']);
                    var log = fs.createWriteStream('server.log', {flags: 'a'});
                    server.stdout.pipe(log);
                    server.stderr.pipe(log);
                  });
                  
                  gulp.task('watch', function(){
                    gulp.watch(productionScripts, ['autoConcat']);
                  });
                  

                  然后將您的 npm start 定義更改為:

                  Then change your npm start definition to look like:

                  "scripts": {
                    "start": "gulp"
                  }
                  

                  這篇關于當我輸入 npm start 時如何啟動 Gulp watch 任務的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 任務)
                  Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                      <bdo id='RXEIW'></bdo><ul id='RXEIW'></ul>
                        <tbody id='RXEIW'></tbody>
                      • <i id='RXEIW'><tr id='RXEIW'><dt id='RXEIW'><q id='RXEIW'><span id='RXEIW'><b id='RXEIW'><form id='RXEIW'><ins id='RXEIW'></ins><ul id='RXEIW'></ul><sub id='RXEIW'></sub></form><legend id='RXEIW'></legend><bdo id='RXEIW'><pre id='RXEIW'><center id='RXEIW'></center></pre></bdo></b><th id='RXEIW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='RXEIW'><tfoot id='RXEIW'></tfoot><dl id='RXEIW'><fieldset id='RXEIW'></fieldset></dl></div>

                        <legend id='RXEIW'><style id='RXEIW'><dir id='RXEIW'><q id='RXEIW'></q></dir></style></legend>

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

                        <tfoot id='RXEIW'></tfoot>
                            主站蜘蛛池模板: 一级黄色片免费 | 五月激情婷婷在线 | 99久久国产 | 欧美一级二级三级视频 | 国产精品美女久久久久久免费 | 亚洲一区二区三 | 国产美女自拍视频 | 欧美午夜激情在线 | 黄色三级免费 | 精品一区久久 | 久久久亚洲综合 | 日韩一区二区在线播放 | 国产 日韩 欧美 中文 在线播放 | 日韩中文字幕一区二区 | 91福利在线导航 | 欧美色综合| 欧美日韩国产免费 | 华人黄网站大全 | www精品| 秋霞电影一区二区三区 | 午夜小视频在线播放 | 欧美日韩三区 | 日韩黄色av | 亚洲国产91| 成人1区 | 一区二区欧美在线 | 国产精品一区二区在线播放 | av性色全交蜜桃成熟时 | 超碰一区二区 | 狠狠躁天天躁夜夜躁婷婷老牛影视 | 日韩在线电影 | 人妖一区| 亚洲视频一区在线观看 | 精品国产一区二区三区av片 | 精品成人一区二区 | 亚洲欧美aⅴ | 国产精品久久久久久久久久三级 | 亚洲精品乱码久久久久久蜜桃91 | 免费一区| 日韩欧美中文 | 日韩欧美视频在线 |