gulp.src should be a passthrough stream
See original GitHub issueThis will alleviate the overusage of gulp-if
Example:
gulp.src('files/*.coffee')
.pipe(coffee())
.pipe(gulp.src('files/*.js'))
.pipe(minify())
.pipe(gulp.dest('dist'))
Issue Analytics
- State:
- Created 9 years ago
- Comments:41 (22 by maintainers)
Top Results From Across the Web
Gulp 4: Passthrough source streams - fettblog.eu
Gulp 4: Passthrough source streams ... Usually, gulp.src would create a stream of file objects based on the globbing pattern you provide.
Read more >Gulp - How do i chain together tasks or streams that use ...
gulp.src() can act as a passthrough stream by using the passthrough option: return gulp.src('/dir1/*.js') .pipe(..) .pipe(.
Read more >Working with Files | gulp.js
It locates all matching files and reads them into memory to pass through the stream. The stream produced by src() should be returned...
Read more >Chapter 7. Working with streams - Front-End Tooling with Gulp ...
Passthrough streams allow for both being written to and being read from. It turns out that gulp.src is capable of creating both readable...
Read more >gulp-filter - npm
There are 736 other projects in the npm registry using gulp-filter. ... '!*src/vendor'], {restore: true, passthrough: false}); const stream ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I usually use
merge()
from https://github.com/dominictarr/event-stream#merge-stream1streamnIs there a current workflow for adding files to the stream midway? I need to conditionally add files based on the content of a previous file.