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

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

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

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

      <tfoot id='P2f0a'></tfoot>

        使用 Gulp 編譯 Sass 并縮小供應商 css

        Using Gulp to Compile Sass and minify vendor css(使用 Gulp 編譯 Sass 并縮小供應商 css)

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

          <legend id='U3Pjt'><style id='U3Pjt'><dir id='U3Pjt'><q id='U3Pjt'></q></dir></style></legend>
            • <bdo id='U3Pjt'></bdo><ul id='U3Pjt'></ul>
              <tfoot id='U3Pjt'></tfoot>

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

                <tbody id='U3Pjt'></tbody>

                  本文介紹了使用 Gulp 編譯 Sass 并縮小供應商 css的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  掌握 Gulp 并提出問題.

                  Getting to grips with Gulp and have a question.

                  所以我有一個類似下面的 gulp CSS 任務,它工作得很好:

                  So I have a gulp CSS task like the below which works just fine:

                  var sassDir = 'app/scss';
                  var targetCssDir = 'public/assets';
                  
                  gulp.task('css', function(){
                      return gulp.src(sassDir + '/main.scss')
                          .pipe(sass({ style: 'compressed' }).on('error', gutil.log))
                          .pipe(autoprefix('last 10 version'))
                          .pipe(gulp.dest(targetCssDir));;
                  });
                  

                  但是有沒有辦法像 Bootstrap 這樣添加我的供應商文件,以便將其包含在內以進行縮小和連接.

                  But is there a way to add my vendor files like Bootstrap so it will be included for minification and concatenation.

                  希望你能給點建議!

                  推薦答案

                  gulp-sass 將滿足您的要求.請讓我向您展示如何編譯 Sass 文件并縮小(或壓縮)已編譯的 css 文件:

                  gulp-sass will meet your request. Pls let me show you how to compile Sass files and minify (or compress) compiled css files:

                  • 從這里
                  • 安裝 gulp-sass
                  • 在您項目的 gulpfile.js 中,添加以下代碼:

                  注意:outputStyle 在 gulp-sass 中有四個選項:nestedexpandedcompactcompressed

                  Note: outputStyle in gulp-sass has four options: nested, expanded, compact, compressed

                  它確實有效,我在我的項目中使用過它.希望對您有所幫助.

                  It really works, I have used it in my project. Hope it helps.

                  var gulp = require('gulp');
                  var sass = require('gulp-sass');
                  
                  //sass
                  gulp.task('sass', function () {
                      gulp.src(['yourCSSFolder/*.scss', 'yourCSSFolder/**/*.scss'])
                          .pipe(sass({outputStyle: 'compressed'}))
                          .pipe(gulp.dest('yourCSSFolder/'));
                  });
                  
                  // Default task
                  gulp.task('default', function () {
                      gulp.start('sass');
                  });
                  

                  提醒一下自述文件

                  這篇關于使用 Gulp 編譯 Sass 并縮小供應商 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 類型而未加載樣式表)
                  CSS3 Transition ( Vendor Prefixes) crashes Safari immediately(CSS3 過渡(供應商前綴)立即使 Safari 崩潰)
                    1. <legend id='7hWgD'><style id='7hWgD'><dir id='7hWgD'><q id='7hWgD'></q></dir></style></legend>

                      • <tfoot id='7hWgD'></tfoot>

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

                            <tbody id='7hWgD'></tbody>

                            <bdo id='7hWgD'></bdo><ul id='7hWgD'></ul>
                            主站蜘蛛池模板: 久久久精品一区二区三区 | 久久久夜夜夜 | 久久蜜桃av| 91高清视频 | 天天操综合网站 | 久久久久久高潮国产精品视 | 国产一区二区久久 | 国产精品久久久久久高潮 | 亚洲www| 久草高清视频 | 国产精品久久久久久久久久妇女 | 国产专区免费 | 中文av在线播放 | av黄色国产 | 国产一级电影在线 | 精品视频一区在线 | 国产片一区二区三区 | 一区二区三区欧美 | 日本精品视频一区二区 | 日韩一级不卡 | 天堂在线中文 | 欧美日韩国产精品一区二区 | 亚洲精品一区在线 | 久久成人18免费网站 | 91精品一区 | 免费黄色av网站 | 777777777亚洲妇女 | 宅男噜噜噜66一区二区 | 91.xxx.高清在线 | 在线免费观看毛片 | 日韩精品一区二区久久 | 亚洲精品久久国产高清情趣图文 | 欧美午夜一区 | 一区二区在线免费观看 | 国产综合精品一区二区三区 | 精品一区二区三区日本 | 精品欧美黑人一区二区三区 | 日本久久福利 | 国产欧美视频一区二区三区 | 精品91久久 | 成人精品国产一区二区4080 |