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

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

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

        如何 Gulp-Watch 多个文件?

        时间:2023-05-29
        <i id='ydeQR'><tr id='ydeQR'><dt id='ydeQR'><q id='ydeQR'><span id='ydeQR'><b id='ydeQR'><form id='ydeQR'><ins id='ydeQR'></ins><ul id='ydeQR'></ul><sub id='ydeQR'></sub></form><legend id='ydeQR'></legend><bdo id='ydeQR'><pre id='ydeQR'><center id='ydeQR'></center></pre></bdo></b><th id='ydeQR'></th></span></q></dt></tr></i><div id='ydeQR'><tfoot id='ydeQR'></tfoot><dl id='ydeQR'><fieldset id='ydeQR'></fieldset></dl></div>

          <tbody id='ydeQR'></tbody>
            <bdo id='ydeQR'></bdo><ul id='ydeQR'></ul>
          • <small id='ydeQR'></small><noframes id='ydeQR'>

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

                  本文介绍了如何 Gulp-Watch 多个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我有这样的事情:

                  gulp.task('default', ['css', 'browser-sync'] , function() {
                  
                      gulp.watch(['sass/**/*.scss', 'layouts/*.css'], function() {
                          gulp.run('css');
                      });
                  
                  });
                  

                  但它不起作用,因为它会监视两个目录,即 sass 和 layouts 目录以进行更改.

                  but it does not work, because it watches two directories, the sass and the layouts directory for changes.

                  如何让它工作,以便 gulp 监视这些目录中发生的任何事情?

                  How do I make it work, so that gulp watches anything that happens inside those directories?

                  推荐答案

                  gulp.task('default', ['css', 'browser-sync'] , function() {
                  
                      gulp.watch(['sass/**/*.scss', 'layouts/**/*.css'], ['css']);
                  
                  });
                  

                  sass/**/*.scsslayouts/**/*.css 将监视每个目录和子目录对 .scss<的任何更改/code> 和 .css 文件更改.如果您想将其更改为 any 文件,请在最后一位 *.*

                  sass/**/*.scss and layouts/**/*.css will watch every directory and subdirectory for any changes to .scssand .css files that change. If you want to change that to any file make the last bit *.*

                  这篇关于如何 Gulp-Watch 多个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

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

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

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

                          <legend id='wrOQG'><style id='wrOQG'><dir id='wrOQG'><q id='wrOQG'></q></dir></style></legend>
                            <tbody id='wrOQG'></tbody>