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

      <legend id='43RoO'><style id='43RoO'><dir id='43RoO'><q id='43RoO'></q></dir></style></legend>

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

        <small id='43RoO'></small><noframes id='43RoO'>

          <bdo id='43RoO'></bdo><ul id='43RoO'></ul>
        <tfoot id='43RoO'></tfoot>
      1. Nodemon監(jiān)視選項(xiàng)損壞

        Nodemon watch option broken(Nodemon監(jiān)視選項(xiàng)損壞)

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

              <tbody id='vBJUV'></tbody>
            <legend id='vBJUV'><style id='vBJUV'><dir id='vBJUV'><q id='vBJUV'></q></dir></style></legend>
          • <i id='vBJUV'><tr id='vBJUV'><dt id='vBJUV'><q id='vBJUV'><span id='vBJUV'><b id='vBJUV'><form id='vBJUV'><ins id='vBJUV'></ins><ul id='vBJUV'></ul><sub id='vBJUV'></sub></form><legend id='vBJUV'></legend><bdo id='vBJUV'><pre id='vBJUV'><center id='vBJUV'></center></pre></bdo></b><th id='vBJUV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vBJUV'><tfoot id='vBJUV'></tfoot><dl id='vBJUV'><fieldset id='vBJUV'></fieldset></dl></div>
                • <bdo id='vBJUV'></bdo><ul id='vBJUV'></ul>
                  <tfoot id='vBJUV'></tfoot>
                  本文介紹了Nodemon監(jiān)視選項(xiàng)損壞的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我正在使用 gulp-nodemon

                  config 目錄只包含一個(gè)文件 server.js.

                  config directory includes only one file, server.js.

                  $.nodemon({
                    script: 'config/server.js',
                    watch: ['config/**/*.js']
                  })
                  .on('restart', function () {
                    setTimeout(function () {
                      $.livereload.changed();
                     }, 1000);
                   });
                  

                  輸出:

                  [gulp] [nodemon] v1.2.1
                  [gulp] [nodemon] to restart at any time, enter `rs`
                  [gulp] [nodemon] watching: config/**/*.js
                  [gulp] [nodemon] starting `node config/server.js`
                  [gulp] [nodemon] watching 34,325 files - this might cause high cpu usage. To reduce use "--watch".
                  

                  如果我包含一個(gè)忽略選項(xiàng),它會(huì)修復(fù).

                  If i include an ignore option it fixes.

                  ignore: [
                    'node_modules/**',
                    'bower_components/**'
                  ]
                  

                  即使我告訴它只看配置目錄,為什么 nodemon 還要看一切?

                  Why does nodemon watch everything even when I tell it to watch only config directory?

                  從輸出中也可以看出,它只監(jiān)視配置目錄 [nodemon] 監(jiān)視:config/**/*.js

                  Also it appears from the output it only watches the config directory [nodemon] watching: config/**/*.js

                  推薦答案

                  這似乎是 nodemon 的錯(cuò)誤 本身,因?yàn)槲夷軌蚴褂煤唵蔚?nodemon 命令重現(xiàn)它:

                  This seems to be a bug with nodemon itself, because I was able to reproduce it using the simple nodemon command :

                  > nodemon --watch app server.js
                  [nodemon] v1.2.1
                  [nodemon] to restart at any time, enter `rs`
                  [nodemon] watching: app/**/*
                  [nodemon] starting `node server.js`
                  [nodemon] watching 72,981 files - this might cause high cpu usage. To reduce use "--watch"
                  

                  nodemon 的默認(rèn)行為是監(jiān)視項(xiàng)目根目錄下的所有目錄,并忽略一些目錄,如 node_modulesbower_components.sass_cache.這個(gè)默認(rèn)的 ignore 實(shí)際上不起作用,但已在 此 PR 中修復(fù).應(yīng)用此修復(fù)程序,我的輸出與預(yù)期一樣.

                  The default behavior of nodemon is to watch all the directories in the root of your project, and to ignore some directories like node_modules, bower_components or .sass_cache. This default ignore don't work actually, but was fixed in this PR. Applying this fix, my output was just as expected.

                  > nodemon --watch app server.js
                  [nodemon] v1.2.1
                  [nodemon] to restart at any time, enter `rs`
                  [nodemon] watching: app/**/*
                  [nodemon] starting `node server.js`
                  

                  我使用這兩種配置進(jìn)行了測(cè)試,即使出現(xiàn)警告,我的 nodemon 也沒有刷新不在指定 watched 目錄中的文件更改,并且正常工作正如預(yù)期的那樣,沒有性能問題.這更可能是對(duì)我的誤報(bào)警告.

                  I tested using both configurations, and even with the warning, my nodemon was not refreshing on a file change that is not in the specified watched directory, and working just as expected with no performance issue. It's more likely a false-positive warning to me.

                  但現(xiàn)在我建議您堅(jiān)持使用 ignore 規(guī)則,直到將其合并到 nodemon 或找到其他解決方法.

                  But for now I advice you to stay with your ignore rule until this is merged into nodemon or another workaround is found.

                  這里有一些相關(guān)的問題:#46, #366 和 #32

                  Here some related issues about that : #46, #366 and #32

                  這篇關(guān)于Nodemon監(jiān)視選項(xiàng)損壞的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運(yùn)算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標(biāo)志傳遞給 Gulp 以使其以不同的方式運(yùn)行任務(wù)?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個(gè)接一個(gè)地依次運(yùn)行 Gulp 任務(wù))
                  Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時(shí) Visual Studio 2015 崩潰)
                • <i id='LFySl'><tr id='LFySl'><dt id='LFySl'><q id='LFySl'><span id='LFySl'><b id='LFySl'><form id='LFySl'><ins id='LFySl'></ins><ul id='LFySl'></ul><sub id='LFySl'></sub></form><legend id='LFySl'></legend><bdo id='LFySl'><pre id='LFySl'><center id='LFySl'></center></pre></bdo></b><th id='LFySl'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LFySl'><tfoot id='LFySl'></tfoot><dl id='LFySl'><fieldset id='LFySl'></fieldset></dl></div>
                        <tbody id='LFySl'></tbody>

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

                            <bdo id='LFySl'></bdo><ul id='LFySl'></ul>
                          • <tfoot id='LFySl'></tfoot><legend id='LFySl'><style id='LFySl'><dir id='LFySl'><q id='LFySl'></q></dir></style></legend>
                            主站蜘蛛池模板: 99久久亚洲| 欧美天堂 | 成人午夜免费在线视频 | 欧美一区中文字幕 | 久久精品99 | 久久久久亚洲精品国产 | 夜夜爽99久久国产综合精品女不卡 | 精品国产乱码久久久久久影片 | 成人欧美一区二区三区黑人孕妇 | 色姑娘av| 久久久久九九九女人毛片 | 免费在线观看黄网站 | 精品在线一区二区 | 国产成人在线一区二区 | a级免费视频 | 高清国产午夜精品久久久久久 | 婷婷色成人 | 91网站在线观看视频 | 亚洲精选一区二区 | 久久久久91| 99九九视频 | 久久久久一区二区三区 | 日韩成人在线视频 | 国产午夜在线观看 | 日韩字幕 | 波多野结衣二区 | 国产精品久久久久久中文字 | 国产精品亚洲一区二区三区在线观看 | 中文在线一区 | 国产精品免费一区二区三区 | 国产在线精品一区二区 | 国产日韩精品一区二区 | 一级免费视频 | 欧美综合一区二区三区 | 欧美精品在线播放 | 天堂av中文 | 亚洲国产精品一区二区三区 | 久草网址 | 亚洲精品欧美 | 午夜电影网 | 麻豆精品国产91久久久久久 |