久久久久久久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 事件流合并順序的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                限時送ChatGPT賬號..

                我正在嘗試將 css 和 scss 文件合并到我的構(gòu)建目錄中的 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 任務(wù)如下所示:

                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 文件轉(zhuǎn)換為普通 css (.pipe(sass)),然后使用 es.merge 函數(shù)將兩者合并并將它們連接到 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.

                關(guān)于如何做到這一點的任何線索?

                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 在這里.

                這篇關(guān)于Gulp.js 事件流合并順序的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                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?(是否可以將標(biāo)志傳遞給 Gulp 以使其以不同的方式運行任務(wù)?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務(wù))
                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>

                          主站蜘蛛池模板: 久草青青草| 久久爱综合| 国产区一区二区三区 | 毛片毛片毛片毛片毛片 | 日本精品国产 | 成人网视频 | 欧美精品一区二区免费 | 精品熟人一区二区三区四区 | 大学生a级毛片免费视频 | 亚洲网站在线观看 | 日韩一区二区视频 | 性色的免费视频 | 欧美精品欧美精品系列 | 国产精品久久久久久中文字 | 日韩二三区 | 天天影视色综合 | 国产精品婷婷 | 国产片侵犯亲女视频播放 | 亚洲国产中文字幕 | 伊人网综合在线 | 美女视频一区 | 国产一级久久久久 | 美女一级黄 | 麻豆久久久9性大片 | av一区二区三区四区 | 久久激情五月丁香伊人 | 9久久| av日韩高清| 四虎影院免费在线 | 四虎午夜剧场 | 久久国产亚洲 | av大全在线 | 精品国产18久久久久久二百 | 久久一区二区免费视频 | 青青草免费在线视频 | gav成人免费播放视频 | 久久久久久久久久久久久九 | 日韩精品久久久久 | 亚洲在线一区二区三区 | 色婷婷综合久久久中字幕精品久久 | 综合色导航 |