Skip to content

Unexpected result when I use gulp.dest() #2504

Answered by phated
zhangzhiqiang37 asked this question in Help
Discussion options

You must be logged in to vote

That is actually just the behavior of nodejs streams. You can't pipe the result to 2 different outputs and you'd need something like a "tee stream", such as something like https://github.com/streamxorg/teex (I'm not sure if it works on standard node streams).

However, it's not recommended to split a gulp stream and instead apply your transforms inline. You can even filter files after they've been modified or written.

I'm going to convert this to a discussion because it is not really an issue with gulp.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zhangzhiqiang37
Comment options

@phated
Comment options

Answer selected by phated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2504 on October 20, 2020 17:09.