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

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

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

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

      <tfoot id='j4m0p'></tfoot>

        如何防止 gulp-notify 在 Windows 中破壞 gulp-watch?

        How do I prevent gulp-notify from breaking gulp-watch in Windows?(如何防止 gulp-notify 在 Windows 中破壞 gulp-watch?)

        <tfoot id='kp3pC'></tfoot>
            • <bdo id='kp3pC'></bdo><ul id='kp3pC'></ul>

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

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

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

                    <tbody id='kp3pC'></tbody>
                  本文介紹了如何防止 gulp-notify 在 Windows 中破壞 gulp-watch?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在使用 gulp-notify 插件.這是我如何在 gulpfile.js 中實現它的一個例子(你可以看到我也在使用 gutil 和 livereload.我不知道它們是否發揮了任何作用,但如果它們發揮作用,請告訴我.)

                  I am using the gulp-notify plugin. This is an example of how I'm implementing it in a gulpfile.js ( You can see I'm using gutil and livereload as well. I don't know if they play any factors, but let me know if they do.)

                  gulp.task('js', function() {
                    return gulp.src('./dev/scripts/*.coffee')
                      .pipe(coffee({bare: true}).on('error', gutil.log))
                      .pipe( gulp.dest('./build/js'))
                      .pipe(notify('Coffeescript compile successful'))
                      .pipe(livereload(server));
                  });
                  

                  此插件適用于 OS X 和 Linux.在沒有通知功能的 Windows 上,它會返回錯誤并破壞 gulp-watch 插件.這是我如何設置 gulp-watch 的示例:

                  This plugin works on OS X and Linux. On Windows, which doesn't have a notification feature, it returns an error and breaks the gulp-watch plugin. This is an example of how I have gulp-watch setup:

                  gulp.task('watch', function () {
                    server.listen(35729, function (err) {
                      if (err) {
                        return console.log(err);
                      }
                      gulp.watch('./dev/scripts/*.coffee',['js']);
                    });
                  });
                  

                  因此,我在文檔中閱讀了 gulp-pipe 插件可以幫助我在 Windows 上不破壞 gulp-watch,但我找不到如何在這樣的設置中使用它的示例.

                  So, I read in the documentation the gulp-pipe plugin can help me not break gulp-watch when on Windows, but I can't find an example of how I could use it in a setup like this.

                  推薦答案

                  你可以使用 gulp-if插件結合os節點模塊來確定您是否在 Windows 上,然后排除 gulp-notify,如下所示:

                  You can use the gulp-if plugin in combination with the os node module to determine if you are on Windows, then exclude gulp-notify, like so:

                  var _if = require('gulp-if');
                  
                  //...
                  
                  // From http://stackoverflow.com/questions/8683895/variable-to-detect-operating-system-in-node-scripts
                  var isWindows = /^win/.test(require('os').platform());
                  
                  //...
                  
                       // use like so:
                      .pipe(_if(!isWindows, notify('Coffeescript compile successful')))
                  

                  這篇關于如何防止 gulp-notify 在 Windows 中破壞 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='IJu7I'><tr id='IJu7I'><dt id='IJu7I'><q id='IJu7I'><span id='IJu7I'><b id='IJu7I'><form id='IJu7I'><ins id='IJu7I'></ins><ul id='IJu7I'></ul><sub id='IJu7I'></sub></form><legend id='IJu7I'></legend><bdo id='IJu7I'><pre id='IJu7I'><center id='IJu7I'></center></pre></bdo></b><th id='IJu7I'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='IJu7I'><tfoot id='IJu7I'></tfoot><dl id='IJu7I'><fieldset id='IJu7I'></fieldset></dl></div>
                    <legend id='IJu7I'><style id='IJu7I'><dir id='IJu7I'><q id='IJu7I'></q></dir></style></legend>

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

                      <tbody id='IJu7I'></tbody>

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

                        • <tfoot id='IJu7I'></tfoot>
                            主站蜘蛛池模板: 国产成人a亚洲精品 | 综合久久综合久久 | 日韩在线中文字幕 | 欧美理论片在线 | 国产日产精品一区二区三区四区 | 日韩无 | 一区二区电影 | 国产美女黄色片 | 免费在线观看一区二区三区 | 久久高清| 欧美精品欧美精品系列 | 超碰人人艹 | 爱爱爱av | 午夜精品久久久久久久久久久久久 | 一区二区在线 | 在线播放中文字幕 | 色综合成人网 | 成人久久18免费网站麻豆 | 国产精品免费一区二区三区 | 日韩一区二区三区四区五区 | 中日韩欧美一级片 | 亚洲欧美国产毛片在线 | 精品91av | 先锋影音资源网站 | 国产综合在线视频 | 欧美成年人视频在线观看 | 久热精品免费 | 九九精品在线 | 成人黄色电影在线播放 | 成人精品系列 | 欧美午夜精品 | 激情一区二区三区 | 欧美一级欧美三级在线观看 | 日本黄色片免费在线观看 | 在线免费黄色小视频 | 国产a视频 | 天天看夜夜| 中国人pornoxxx麻豆 | 精品国产一区二区在线 | 国产精品久久久久久久久动漫 | 在线观看精品 |