Skip to content

Commit

Permalink
Fix cloned gulp task stream is still using original stream. #6631 #6622
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Oct 21, 2018
1 parent c98b431 commit 22a0c7b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tasks/build/css.js
Expand Up @@ -96,7 +96,7 @@ module.exports = function(callback) {
;

// compressed component css
compressedStream = stream
compressedStream
.pipe(plumber())
.pipe(clone())
.pipe(replace(assets.source, assets.compressed))
Expand Down
2 changes: 1 addition & 1 deletion tasks/docs/build.js
Expand Up @@ -145,7 +145,7 @@ module.exports = function(callback) {
})
;

compressedStream = stream
compressedStream
.pipe(plumber())
.pipe(clone())
.pipe(replace(assets.source, assets.compressed))
Expand Down
2 changes: 1 addition & 1 deletion tasks/docs/serve.js
Expand Up @@ -188,7 +188,7 @@ module.exports = function () {
})
;

compressedStream = stream
compressedStream
.pipe(plumber())
.pipe(replace(assets.source, assets.compressed))
.pipe(minifyCSS(settings.minify))
Expand Down
2 changes: 1 addition & 1 deletion tasks/rtl/build.js
Expand Up @@ -90,7 +90,7 @@ module.exports = function(callback) {
})
;

compressedStream = stream
compressedStream
.pipe(plumber())
.pipe(clone())
.pipe(replace(assets.source, assets.compressed))
Expand Down
2 changes: 1 addition & 1 deletion tasks/rtl/watch.js
Expand Up @@ -154,7 +154,7 @@ module.exports = function(callback) {
})
;

compressedStream = stream
compressedStream
.pipe(plumber())
.pipe(replace(assets.source, assets.compressed))
.pipe(minifyCSS(settings.minify))
Expand Down
2 changes: 1 addition & 1 deletion tasks/watch.js
Expand Up @@ -166,7 +166,7 @@ module.exports = function(callback) {
})
;

compressedStream = stream
compressedStream
.pipe(plumber())
.pipe(replace(assets.source, assets.compressed))
.pipe(minifyCSS(settings.minify))
Expand Down

0 comments on commit 22a0c7b

Please sign in to comment.