Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow piping streaming vinyls through multiple .dest()'s #10

Merged
merged 2 commits into from Feb 26, 2014

Conversation

hughsk
Copy link
Contributor

@hughsk hughsk commented Feb 23, 2014

Re-emits the file once it has been written, with file.contents having been changed to a fs.ReadStream of the original destination file.

@contra unsure if you'd prefer an alternative method or even want to allow this functionality – hopefully it helps :)

Re-emits the file once it has been written, with file.contents
having been changed to a fs.ReadStream of the original
destination file.
file.contents.once('error', cb);
outStream.once('finish', cb);
file.contents.pipe(outStream).once('finish', function() {
file.contents = fs.createReadStream(writePath);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea – updated!

yocontra added a commit that referenced this pull request Feb 26, 2014
Allow piping streaming vinyls through multiple .dest()'s
@yocontra yocontra merged commit b1baf71 into gulpjs:master Feb 26, 2014
phated pushed a commit that referenced this pull request Dec 5, 2017
Allow piping streaming vinyls through multiple .dest()'s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants