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

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

    1. <tfoot id='zJYKt'></tfoot>
    2. <small id='zJYKt'></small><noframes id='zJYKt'>

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

        Gulp less 然后縮小任務(wù)

        Gulp less and then minify task(Gulp less 然后縮小任務(wù))

                <tbody id='fP358'></tbody>

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

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

              <legend id='fP358'><style id='fP358'><dir id='fP358'><q id='fP358'></q></dir></style></legend>
              • <tfoot id='fP358'></tfoot>
                • <bdo id='fP358'></bdo><ul id='fP358'></ul>
                • 本文介紹了Gulp less 然后縮小任務(wù)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

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

                  我必須在 gulp 中執(zhí)行 2 個(gè)步驟:

                  I have to make 2 steps in gulp:

                  1. 減少 .css 文件格式
                  2. 縮小生成的 css 文件

                  這是我的 gulpfile:

                  This is my gulpfile:

                  var gulp = require('gulp'),
                      watch = require("gulp-watch"),
                      less = require('gulp-less'),
                      cssmin = require('gulp-cssmin'),
                      rename = require('gulp-rename');
                  
                  gulp.task('watch-less', function () {
                      watch({glob: './*.less'}, function (files) { // watch any changes on coffee files
                          gulp.start('compile-less'); // run the compile task
                      });
                  
                      watch({
                          glob: ['./*.css', '!./*.min.css']
                      }, function(files) {
                          gulp.start('minify-css'); // run the compile task
                      });
                  });
                  
                  gulp.task('compile-less', function () {
                      gulp.src('./*.less') // path to your file
                      .pipe(less().on('error', function(err) {
                          console.log(err);
                      }))
                      .pipe(gulp.dest('./'));
                  });
                  
                  gulp.task('minify-css', function() {
                      gulp.src([
                          './*.css',
                          '!./*.min.css'
                      ])
                      .pipe(cssmin().on('error', function(err) {
                          console.log(err);
                      }))
                      .pipe(rename({suffix: '.min'}))
                      .pipe(gulp.dest('./'));
                  })
                  
                  gulp.task('default', ['watch-less']);
                  

                  當(dāng)我啟動(dòng)它時(shí),只完成了第一步.請(qǐng)幫幫我.

                  When i start it only first step is done. Help me please.

                  推薦答案

                  時(shí)間久了就不需要了,對(duì)我來(lái)說(shuō)方便的解決方案是:

                  There is no needing after time, convinient solution for me was:

                  var gulp = require('gulp'),
                      less = require('gulp-less'),
                      cssmin = require('gulp-cssmin'),
                      plumber = require('gulp-plumber'),
                      rename = require('gulp-rename');
                  
                  gulp.task('watch', function () {
                      gulp.watch('./styles/*.less', ['less']);
                  });
                  
                  gulp.task('less', function () {
                      gulp.src('./styles/*.less')
                          .pipe(plumber())
                          .pipe(less())
                          .pipe(gulp.dest('./styles/'))
                          .pipe(cssmin())
                          .pipe(rename({
                              suffix: '.min'
                          }))
                          .pipe(gulp.dest('./styles'))
                  
                  });
                  
                  gulp.task('default', ['less', 'watch']);
                  

                  這篇關(guān)于Gulp less 然后縮小任務(wù)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(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 類(lèi)型而未加載樣式表)
                  Visual Studio 2015 crashes when opening Javascript files(打開(kāi) Javascript 文件時(shí) Visual Studio 2015 崩潰)

                    1. <tfoot id='ZU3Xe'></tfoot>
                      • <bdo id='ZU3Xe'></bdo><ul id='ZU3Xe'></ul>
                          <tbody id='ZU3Xe'></tbody>

                      • <legend id='ZU3Xe'><style id='ZU3Xe'><dir id='ZU3Xe'><q id='ZU3Xe'></q></dir></style></legend>
                          • <small id='ZU3Xe'></small><noframes id='ZU3Xe'>

                            <i id='ZU3Xe'><tr id='ZU3Xe'><dt id='ZU3Xe'><q id='ZU3Xe'><span id='ZU3Xe'><b id='ZU3Xe'><form id='ZU3Xe'><ins id='ZU3Xe'></ins><ul id='ZU3Xe'></ul><sub id='ZU3Xe'></sub></form><legend id='ZU3Xe'></legend><bdo id='ZU3Xe'><pre id='ZU3Xe'><center id='ZU3Xe'></center></pre></bdo></b><th id='ZU3Xe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZU3Xe'><tfoot id='ZU3Xe'></tfoot><dl id='ZU3Xe'><fieldset id='ZU3Xe'></fieldset></dl></div>
                            主站蜘蛛池模板: 97精品超碰一区二区三区 | 欧美日韩一区二区三区四区五区 | 日韩精品专区在线影院重磅 | 精品成人av| 精品国产一区二区三区性色av | 午夜影院在线观看 | 中文字幕视频免费 | 国产一区二区免费 | 亚洲91精品 | 国产日韩亚洲欧美 | 一级黄色片在线免费观看 | 亚洲一区免费视频 | 国产一区精品 | 国产成人啪免费观看软件 | av在线一区二区 | 欧美日韩综合精品 | 亚洲美女在线一区 | 五月综合激情在线 | 亚洲精品一区二区 | 国产在视频一区二区三区吞精 | 欧洲色| 久久九九免费 | 中文字幕 欧美 日韩 | 91精品国产综合久久久久久漫画 | 欧美精品一区二区在线观看 | 欧美一级在线 | 久久精品亚洲 | av在线一区二区三区 | 国产九九九九 | 曰韩一二三区 | 成人国产在线观看 | 久久久国产亚洲精品 | 精品国产鲁一鲁一区二区张丽 | 天堂在线中文 | 久久九九网站 | 精品自拍视频 | 欧美一级视频在线观看 | 国产精品乱码一区二区三区 | 国产精品一区二区久久精品爱微奶 | 欧美亚洲成人网 | 日韩av福利在线观看 |