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

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

    1. <tfoot id='lLseo'></tfoot>

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

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

      • <bdo id='lLseo'></bdo><ul id='lLseo'></ul>
      1. Gulp 使用 @import 監(jiān)視和編譯更少的文件

        Gulp watch and compile less files with @import(Gulp 使用 @import 監(jiān)視和編譯更少的文件)

              <small id='6MMaf'></small><noframes id='6MMaf'>

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

                  問題描述

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

                  我正試圖用 gulp 來觀察和編譯一個(gè) .less 項(xiàng)目 + livereload.我有一個(gè)使用 @import 的 style.less 文件.當(dāng)我運(yùn)行 gulp 任務(wù)時(shí),它似乎不理解導(dǎo)入.當(dāng)我修改主文件時(shí),gulp 會(huì)編譯文件并刷新瀏覽器,但如果我只修改導(dǎo)入,則更改將被忽略.

                  I'm trying to get my head around gulp to watch and compile a .less project + livereload. I have a style.less file which use @import. When i run the gulp task it doesn't seem to understand the imports. When I modify the main less file, gulp compiles the file and refresh the browser but if i modify only an import, the changes are ignored.

                  這是我的 gulpfile.js

                  Here is my gulpfile.js

                  var gulp = require('gulp');
                  var less = require('gulp-less');
                  var watch = require('gulp-watch');
                  var prefix = require('gulp-autoprefixer');
                  var plumber = require('gulp-plumber');
                  var livereload = require('gulp-livereload');
                  var path = require('path');
                  
                  gulp.task('default', function() {
                      return gulp.src('./style.less')
                          .pipe(watch())
                          .pipe(plumber())
                          .pipe(less({
                            paths: ['./', './overrides/']
                          }))
                          .pipe(prefix("last 8 version", "> 1%", "ie 8", "ie 7"), {cascade:true})
                          .pipe(gulp.dest('./'))
                          .pipe(livereload());
                  });
                  

                  我嘗試在 gulp.src('./*.less') 中不指定主文件名,但是所有的 less 文件都是單獨(dú)編譯的.

                  I tried not specifying the main file name in gulp.src('./*.less') but then all of the less files are compiled indvidually.

                  謝謝

                  推薦答案

                  現(xiàn)在您正在打開單個(gè) gulp.src 文件,并觀看使用 gulp 打開文件后.下面將把 watch 和 src 分成兩個(gè)任務(wù),允許單獨(dú)的 file 和 src 觀看.

                  Right now you are opening the single gulp.src file, and watching After you open the file with gulp. The following will split the watching and src into two tasks, allowing for separate file and src watching.

                  var gulp = require('gulp');
                  var less = require('gulp-less');
                  var watch = require('gulp-watch');
                  var prefix = require('gulp-autoprefixer');
                  var plumber = require('gulp-plumber');
                  var livereload = require('gulp-livereload');
                  var path = require('path');
                  
                  gulp.task('less', function() {
                      return gulp.src('./style.less')  // only compile the entry file
                          .pipe(plumber())
                          .pipe(less({
                            paths: ['./', './overrides/']
                          }))
                          .pipe(prefix("last 8 version", "> 1%", "ie 8", "ie 7"), {cascade:true})
                          .pipe(gulp.dest('./'))
                          .pipe(livereload());
                  });
                  gulp.task('watch', function() {
                      gulp.watch('./*.less', ['less']);  // Watch all the .less files, then run the less task
                  });
                  
                  gulp.task('default', ['watch']); // Default will run the 'entry' watch task
                  

                  當(dāng)使用 *.less 找到的任何文件被更改時(shí),它將運(yùn)行僅編譯 src 文件的任務(wù).@imports 應(yīng)該被正確地包含",如果沒有檢查導(dǎo)入設(shè)置.

                  When Any of the files found with *.less are altered it will then run the task which will compile just the src file. The @imports should be 'included' correctly, if not check the import settings.

                  這篇關(guān)于Gulp 使用 @import 監(jiān)視和編譯更少的文件的文章就介紹到這了,希望我們推薦的答案對(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 崩潰)

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

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

                      • <bdo id='hndgw'></bdo><ul id='hndgw'></ul>
                          <tfoot id='hndgw'></tfoot>
                          • <legend id='hndgw'><style id='hndgw'><dir id='hndgw'><q id='hndgw'></q></dir></style></legend>
                            主站蜘蛛池模板: 精品自拍视频在线观看 | 日韩高清中文字幕 | 精品国产一区二区三区性色av | 正在播放国产精品 | 亚洲品质自拍视频网站 | 国产精品资源在线观看 | 日韩欧美在线免费观看视频 | 免费一级淫片aaa片毛片a级 | 国产在线视频一区二区 | 国产精品有限公司 | 国产一区视频在线 | 国产精品久久久久久久久久了 | 四虎影院免费在线 | 亚洲国产欧美一区二区三区久久 | 国产91视频一区二区 | 日韩高清一区 | 国产亚洲一区精品 | 国产自产21区 | 国产一区2区 | 午夜精品久久久 | 99久久免费精品国产免费高清 | 成人中文字幕在线 | 亚洲精品电影网在线观看 | 不卡视频一区二区三区 | 日韩2020狼一二三 | 亚洲精品电影网在线观看 | 亚洲成人一区二区在线 | 天天天操操操 | 久久久久久艹 | 一级黄色片美国 | 欧美精品久久一区 | a级黄色网 | 四虎影音| 中文字幕第一页在线 | 一级毛片免费 | 久久成人高清视频 | 亚洲日韩中文字幕一区 | 综合国产| 免费的av网站| 欧美视频在线播放 | 国产美女精品 |