You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been spending the better part of a day trying to figure this out. For some reason, when using gulp-watch a pipe that calls event-stream.through() afterwards completely breaks. I'm attempting to get gulp-watch and gulp-inject to play nice together (gulp-inject issue at klei/gulp-inject#31).
gulp-inject adds a pipe to the stream that calls an event-stream.through(start, end) ( https://github.com/klei/gulp-inject/blob/master/index.js#L114). After start() successfully runs, end() is never called and the collector ends execution without end() ever getting called.
So the odd part, is this only happens when wrapping the stream with gulp-watch. If I remove gulp-watch and use a normal gulp.src everything works fine as seen below:
The second debug() results in nothing since the inject wasn't able to complete. At this point, I'm not even sure if this is an event-stream bug or a gulp-watch bug.
The text was updated successfully, but these errors were encountered:
Could you write what exactly you want to achieve by this task? As I see in mentioned issue in gulp-inject, you want to rebuild sass files on change and then rebuild index.html with injected css links? If so, then you should rewrite your gulp task to look like this: https://gist.github.com/floatdrop/44fb27635cd0e4fe5b43
You problem is that you passing stream from gulp-watch to gulp-inject, and gulp-inject expects 'end' event, which is never happens with gulp-watch stream.
I've been spending the better part of a day trying to figure this out. For some reason, when using
gulp-watch
a pipe that callsevent-stream.through()
afterwards completely breaks. I'm attempting to getgulp-watch
andgulp-inject
to play nice together (gulp-inject
issue at klei/gulp-inject#31).gulp-inject
adds a pipe to the stream that calls anevent-stream.through(start, end)
( https://github.com/klei/gulp-inject/blob/master/index.js#L114). Afterstart()
successfully runs,end()
is never called and the collector ends execution withoutend()
ever getting called.So the odd part, is this only happens when wrapping the stream with
gulp-watch
. If I removegulp-watch
and use a normalgulp.src
everything works fine as seen below:This outputs:
The second
debug()
results in nothing since the inject wasn't able to complete. At this point, I'm not even sure if this is anevent-stream
bug or agulp-watch
bug.The text was updated successfully, but these errors were encountered: