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

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

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

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

      <tfoot id='XIr8F'></tfoot>

      Gulp.js 事件流合并順序

      Gulp.js event stream merge order(Gulp.js 事件流合并順序)
      <tfoot id='EghTm'></tfoot>

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

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

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

      • <i id='EghTm'><tr id='EghTm'><dt id='EghTm'><q id='EghTm'><span id='EghTm'><b id='EghTm'><form id='EghTm'><ins id='EghTm'></ins><ul id='EghTm'></ul><sub id='EghTm'></sub></form><legend id='EghTm'></legend><bdo id='EghTm'><pre id='EghTm'><center id='EghTm'></center></pre></bdo></b><th id='EghTm'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EghTm'><tfoot id='EghTm'></tfoot><dl id='EghTm'><fieldset id='EghTm'></fieldset></dl></div>
                <tbody id='EghTm'></tbody>
              • 本文介紹了Gulp.js 事件流合并順序的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我正在嘗試將 css 和 scss 文件合并到我的構建目錄中的 main.css 文件中.它的工作,但不是在正確的順序.scss 文件中的樣式屬性需要位于 main.css 文件的底部,以便它們覆蓋其余部分.

                I am trying to merge css and scss files into a main.css file that goes in my build directory. Its working, but not in the right order. The style attributes from the scss files need to be in the bottom of the main.css file so they overrule the rest.

                我的 Gulp 任務如下所示:

                my Gulp task looks like this:

                    //CSS
                gulp.task('css', function () {
                    var cssTomincss = gulp.src(['dev/css/reset.css', 'dev/css/style.css','dev/css/typography.css',    'dev/css/sizes.css']);
                
                    var cssFromscss = gulp.src(['dev/css/*.scss'])
                        .pipe(sass());
                
                    return es.merge(cssTomincss, cssFromscss)
                        .pipe(concat('main.css'))
                        .pipe(minifyCSS())
                        .pipe(gulp.dest('build/css'))
                });
                

                我首先用變量定義源.我正在使用 gulp-sass 插件將 scss 文件轉換為普通 css (.pipe(sass)),然后使用 es.merge 函數將兩者合并并將它們連接到 main.css.

                I am defining the sources first with variables. I am using the gulp-sass plugin to convert the scss file into normal css (.pipe(sass)) and later merging the two with the es.merge function and concatenating them into main.css.

                問題在于 .scss 文件的樣式屬性最終位于 main.css 文件的頂端某處.我需要他們在底部.所以它們需要在底部連接起來.

                The problem is that the style attributes van the .scss files end up somewhere in the top end of the main.css file. I need them to be at the bottom. So they need to be concatenated at the bottom.

                關于如何做到這一點的任何線索?

                Any clue on how to do this?

                推薦答案

                試試streamqueue.

                var streamqueue = require('streamqueue');
                
                gulp.task('css', function () {
                    return streamqueue({ objectMode: true },
                            gulp.src(['dev/css/reset.css', 'dev/css/style.css', 'dev/css/typography.css', 'dev/css/sizes.css']),
                            gulp.src(['dev/css/*.scss']).pipe(sass())
                        )
                        .pipe(concat('main.css'))
                        .pipe(minifyCSS())
                        .pipe(gulp.dest('build/css'))
                });
                

                這個備忘單會幫助你.PDF 在這里.

                這篇關于Gulp.js 事件流合并順序的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 崩潰)
                <i id='uiWFa'><tr id='uiWFa'><dt id='uiWFa'><q id='uiWFa'><span id='uiWFa'><b id='uiWFa'><form id='uiWFa'><ins id='uiWFa'></ins><ul id='uiWFa'></ul><sub id='uiWFa'></sub></form><legend id='uiWFa'></legend><bdo id='uiWFa'><pre id='uiWFa'><center id='uiWFa'></center></pre></bdo></b><th id='uiWFa'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uiWFa'><tfoot id='uiWFa'></tfoot><dl id='uiWFa'><fieldset id='uiWFa'></fieldset></dl></div>
                <legend id='uiWFa'><style id='uiWFa'><dir id='uiWFa'><q id='uiWFa'></q></dir></style></legend>
                  <tbody id='uiWFa'></tbody>

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

                <tfoot id='uiWFa'></tfoot>
                  <bdo id='uiWFa'></bdo><ul id='uiWFa'></ul>

                          主站蜘蛛池模板: 久久伊 | 免费观看黄网站 | 成人欧美一区二区三区黑人孕妇 | av毛片| 国产一区二区自拍 | 人人射人人草 | 99热在线观看精品 | 日韩和的一区二区 | 99精品久久久 | 国产精品久久777777 | 狠狠狠 | 亚洲一区二区三区视频在线 | 午夜免费观看体验区 | 亚洲一区二区在线视频 | 日韩国产一区二区三区 | 国产伦精品一区二区三区在线 | 亚洲成人av在线播放 | 国产精品123区 | 99久热| 国产亚洲精品一区二区三区 | 午夜激情免费视频 | 国产一二区视频 | 男女啪啪网址 | 中文在线一区二区 | 亚洲欧美中文日韩在线v日本 | 亚洲高清视频一区 | 国产成人在线视频 | 国产精品91久久久久久 | 国产小视频在线观看 | 中文字幕av一区 | 天天射视频 | 在线91 | 在线免费观看色 | 国产特级毛片 | 免费视频一区二区 | 91中文字幕在线观看 | 一级黄色毛片免费 | 久久国产视频网 | 久久中文字幕一区 | 亚洲va欧美va天堂v国产综合 | 欧美性高潮 |