Open ashmind opened 7 years ago
why is it .pipe(pipe(...))
?
.pipe(pipe(g.svg2png({ width: 16, height: 16 })))
does it work as expected if you remove that? can you confirm that map-stream is getting to the end? (should emit and "end" event)
@dominictarr
does it work as expected if you remove that?
Yes, but the problem is I want multipipe
for my scenario.
I don't really remember the details of this one anymore, but here is the test I did for gulp-svg2png: https://github.com/ashmind/gulp-svg2png/commit/e413827d9400cfda9f44ecaa15f915aeabfe35e0#diff-c48ef94ea42b842eba31916c3fd618c3R63
It does not pass with current map-stream
, but did pass with my modified version.
If I use this plugin inside of a multipipe, than the stream never ends, and even though gulp exits, the processing is interrupted and some of the further pipe steps are not processed.
Simplified example (I know
pipe
here is pointless, real code is more complex):When I run
gulp favicons
, I get:and even though gulp does exit, there is no "Finished" log, and only one file is processed.
I've actually narrowed it down to an issue in map-stream which I reported as dominictarr/map-stream#21, but I thought it would be useful to file here as well.