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

  • <legend id='bzsoI'><style id='bzsoI'><dir id='bzsoI'><q id='bzsoI'></q></dir></style></legend>

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

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

        gulp watch 不看

        gulp watch doesn#39;t watch(gulp watch 不看)

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

            <small id='37tNU'></small><noframes id='37tNU'>

              • <tfoot id='37tNU'></tfoot>

                  <tbody id='37tNU'></tbody>
                  本文介紹了gulp watch 不看的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  以下是我的 gulpfile.js.里面還有幾個任務,一切都運行良好 - 但最后一個任務,watch 沒有.

                  Following is my gulpfile.js. There are a couple of more tasks in it and all are working fine - but the last task, watch doesn't.

                  我已經嘗試了所有可能的路徑和文件組合,但我仍然沒有運氣.我在這里閱讀了很多關于此的答案,但無法解決我的問題.我嘗試在需要和不需要 gulp-watch 的情況下運行 gulp.watch,嘗試了幾種不同的方法來設置任務等等......

                  I've tried every possible combination of paths and files and what so ever, but still I don't have luck. I've read many answers on this here, but couldn't solve my problem. I tried to run gulp.watch with and without requiring gulp-watch, tried several different approaches on how to set up the task and so on and so on...

                  var gulp = require('gulp');
                  var browserify = require('browserify');
                  var babelify = require('babelify');
                  var source = require('vinyl-source-stream');
                  var watch = require('gulp-watch');
                  
                  gulp.task('application', function() {
                      return browserify('./public/resources/jsx/application.js')
                          .transform(babelify, { stage: 0 })
                          .bundle()
                          .on('error', function(e){
                              console.log(e.message);
                  
                              this.emit('end');
                          })
                          .pipe(source('appBundle.js'))
                          .pipe(gulp.dest('./public/resources/jsx'));
                  });
                  
                  gulp.task('watch', function() {
                      gulp.watch('./public/resources/jsx/project/*.js',['application'])
                  });
                  

                  有人可以提出解決方案嗎?

                  Can someone suggest a solution?

                  這是控制臺輸出:

                  michael@michael-desktop:/opt/PhpstormProjects/app_april_2015$ gulp watch
                  [23:05:03] Using gulpfile /opt/PhpstormProjects/app_april_2015/gulpfile.js
                  [23:05:03] Starting 'watch'...
                  [23:05:03] Finished 'watch' after 13 ms
                  

                  推薦答案

                  你應該return觀看:

                  gulp.task('watch', function() {
                      return gulp.watch('./public/resources/jsx/project/*.js',['application'])
                  });
                  

                  watch 是一個 async 方法,所以 Gulp 知道某事正在發生的唯一方法是如果你返回一個 promise,它會監視可以.

                  watch is an async method, so the only way Gulp can know that something is happening is if you return a promise, which watch does.

                  編輯

                  正如@JMM 所說,watch 不會返回 Promise.它返回一個 EventEmitter.

                  As @JMM stated, watch doesn't return a Promise. It returns an EventEmitter.

                  這篇關于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 任務)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)

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

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

                      <legend id='bDZtF'><style id='bDZtF'><dir id='bDZtF'><q id='bDZtF'></q></dir></style></legend>
                        <tbody id='bDZtF'></tbody>
                      • <bdo id='bDZtF'></bdo><ul id='bDZtF'></ul>

                          • <tfoot id='bDZtF'></tfoot>

                            主站蜘蛛池模板: 国产精品视频在线播放 | 久久久这里都是精品 | 久久精品国产v日韩v亚洲 | 中文字幕二区 | 日韩aⅴ片| 国产亚洲欧美在线视频 | 热99| 成年人黄色免费视频 | 一区二区三区中文字幕 | 日韩精品久久久久 | 精品视频在线观看 | 日韩成人精品一区 | 亚洲精品乱码久久久久v最新版 | 午夜免费视频 | 美女黄色在线观看 | 少妇精品久久久久久久久久 | 亚洲在线视频 | 国产一区二区在线免费 | 国产精品99久久久久 | 亚洲精品久久久蜜桃 | 美女啪啪国产 | 亚洲综合无码一区二区 | 蜜桃视频一区二区三区 | 国产精品一区二区三 | 亚洲一二三在线 | 亚洲视频在线观看 | 中文字幕三区 | 爱高潮www亚洲精品 中文字幕免费视频 | 成人精品在线观看 | av永久 | 成人午夜免费网站 | 中文一区 | 黄色骚片| 精品1区2区3区4区 | 91av视频在线| 久久久久久国产精品久久 | 国产网站在线免费观看 | 在线欧美| 日韩电影一区二区三区 | 久久久精品久久 | 欧美不卡一区二区三区 |