Gulp.js event stream merge order

前端 未结 4 1760
渐次进展
渐次进展 2021-01-31 09:20

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 n

4条回答
  •  伪装坚强ぢ
    2021-01-31 09:29

    I tried gulp-order without success: the order somehow wasn't taken into account.

    The solution which worked for me was using stream-series, mentioned by Aperçu.

    return streamSeries(
        cssTomincss,
        cssFromscss)
        .pipe(concat('main.css'))
        .pipe(minifyCSS())
        .pipe(gulp.dest('build/css'));
    

提交回复
热议问题