久久久久久久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>
                            主站蜘蛛池模板: 久久久久久综合 | 国产高清自拍视频在线观看 | 99爱国产 | 成人a视频在线观看 | 精品欧美一区免费观看α√ | 中文字幕 在线观看 | 国产在视频一区二区三区吞精 | 色综合久 | 看av网| 黄色三级免费 | 91精品国产自产精品男人的天堂 | 免费一级毛片 | 成人国产在线观看 | 国产精品久久久久aaaa樱花 | 亚洲国产精品第一区二区 | 国产在线精品一区二区 | 国产一区二区在线播放 | 日日天天 | 久久综合久久综合久久 | 欧美人妇做爰xxxⅹ性高电影 | 国产精品久久久久久久毛片 | 无码一区二区三区视频 | 亚洲精品电影在线观看 | 欧美xxxx色视频在线观看免费 | 日日夜夜狠狠操 | 精品1区2区 | 男女羞羞视频网站 | 91色网站 | 一级做a爰片性色毛片视频停止 | 在线视频一区二区三区 | 九一精品 | 男女羞羞视频在线免费观看 | 一级欧美一级日韩片 | 欧美专区在线 | 欧美寡妇偷汉性猛交 | av网站在线免费观看 | 97久久久久久久久 | 伊人网站在线观看 | 日韩中文字幕区 | 中文精品视频 | 国产情品 |