Skip to content

Commit

Permalink
Fixes the issue where gulp build was not building all css files Seman…
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu230 committed Oct 17, 2018
1 parent 42b2795 commit 7edc459
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tasks/build/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,9 @@ module.exports = function(callback) {
.pipe(flatten())
;

// two concurrent streams from same source to concat release
uncompressedStream = stream.pipe(clone());
compressedStream = stream.pipe(clone());

// uncompressed component css
uncompressedStream
uncompressedStream = stream
.pipe(clone())
.pipe(plumber())
.pipe(replace(assets.source, assets.uncompressed))
.pipe(gulpif(config.hasPermission, chmod(config.permission)))
Expand All @@ -97,8 +94,8 @@ module.exports = function(callback) {

// compressed component css
compressedStream = stream
.pipe(plumber())
.pipe(clone())
.pipe(plumber())
.pipe(replace(assets.source, assets.compressed))
.pipe(minifyCSS(settings.minify))
.pipe(rename(settings.rename.minCSS))
Expand Down

0 comments on commit 7edc459

Please sign in to comment.