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

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

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

      2. <tfoot id='SfqiU'></tfoot>
          <bdo id='SfqiU'></bdo><ul id='SfqiU'></ul>

        gulp:如何在不刷新的情況下更新瀏覽器(僅適用于

        gulp: how to update the browser without refresh (for css changes only)(gulp:如何在不刷新的情況下更新瀏覽器(僅適用于 css 更改))
      3. <i id='Uw0Iq'><tr id='Uw0Iq'><dt id='Uw0Iq'><q id='Uw0Iq'><span id='Uw0Iq'><b id='Uw0Iq'><form id='Uw0Iq'><ins id='Uw0Iq'></ins><ul id='Uw0Iq'></ul><sub id='Uw0Iq'></sub></form><legend id='Uw0Iq'></legend><bdo id='Uw0Iq'><pre id='Uw0Iq'><center id='Uw0Iq'></center></pre></bdo></b><th id='Uw0Iq'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Uw0Iq'><tfoot id='Uw0Iq'></tfoot><dl id='Uw0Iq'><fieldset id='Uw0Iq'></fieldset></dl></div>

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

          <tbody id='Uw0Iq'></tbody>

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

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

                  本文介紹了gulp:如何在不刷新的情況下更新瀏覽器(僅適用于 css 更改)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我已設置 gulp,以便在我進行更改時重新加載瀏覽器.但是,對于 css 更改,我希望瀏覽器在不刷新的情況下更新,但我不確定如何執行此操作.對于我當前的設置,我使用了 this 教程:

                  I've setup gulp such that the browser reloads when I make changes. However, for css changes I want the browser to update without refresh, but I'm not sure how to do this. For my current setup I've used this tutorial:

                  var debug = require('gulp-debug'),
                      connect = require('gulp-connect'),
                      watch = require('gulp-watch'),
                      livereload = require('gulp-livereload');
                  
                  gulp.task('webserver', function () {
                      connect.server({
                          livereload: true,
                          root: ['demo/']
                      });
                  });
                  
                  gulp.task('livereload', function () {
                      gulp.src(['index.html', 'resources/**/*.js'])
                          .pipe(watch(['resources/**/*.html', 'index.html']))
                          //.pipe(debug({verbose: true}))
                          .pipe(connect.reload());
                  });
                  
                  gulp.task('watch', function () {
                      livereload.listen();
                      gulp.watch('resources/**/*.scss', ['css']);
                  });
                  

                  在我的 css 任務中,我也調用了

                  In my css task I also call

                  .pipe(livereload());
                  

                  有什么建議我需要修改以便 css 更新無需刷新即可發生嗎?

                  Any suggestions what I need to modify so css updates happen without a refresh ?

                  更新:這是我的 css 任務(有點簡化):

                  UPDATE: Here is my css task (a bit simplified):

                  gulp.task('css', function () {
                      ...
                      return gulp.src('demo.scss')
                          .pipe($.sass({
                              errLogToConsole: true
                          }))
                          .pipe(gulp.dest('./target/')
                          .pipe(livereload());
                  });
                  

                  推薦答案

                  發生變化時需要調用livereload.changed(files).為此,請參閱 gulp-watch文檔.

                  You need to call livereload.changed(files) when change happens. To do that see gulp-watch doc.

                  watch('**/*.js', function (files) {
                    livereload.changed(files)
                  });
                  

                  這篇關于gulp:如何在不刷新的情況下更新瀏覽器(僅適用于 css 更改)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 崩潰)

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

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

                            <tbody id='gbeVg'></tbody>

                            <bdo id='gbeVg'></bdo><ul id='gbeVg'></ul>
                            主站蜘蛛池模板: 成人在线影视 | 国产sm主人调教女m视频 | 久久久国产精品 | 久久久婷 | 国产在线观 | 激情福利视频 | 九色porny自拍视频 | 免费看黄视频网站 | 中文字幕高清免费日韩视频在线 | 欧美黑人一级爽快片淫片高清 | 欧美激情视频一区二区三区在线播放 | 中文字幕一区二区三区精彩视频 | 久久精品一区二 | 九九精品在线 | 欧美国产亚洲一区二区 | 午夜久久久久久久久久一区二区 | 欧美在线成人影院 | 91成人在线 | 成人一区二区三区在线观看 | 精品国产99| 日韩免费高清视频 | 麻豆毛片| 日韩一区二区三区四区五区 | 成av在线 | 久久久久久av | 欧美大片一区 | 色综合久久久久 | 一区网站| 人人鲁人人莫人人爱精品 | 手机av在线 | 91欧美| 九九导航 | 成人妇女免费播放久久久 | 国产精品久久久久aaaa九色 | 91精品久久久久久久久 | 久久亚洲一区二区 | 午夜精品久久久 | 日韩影院在线 | 国产精品色哟哟网站 | 国产精品国产三级国产aⅴ中文 | 欧美日韩视频在线 |