additonalStreams not merging streams
See original GitHub issueI may just be missing something but I have my setup attempting to merge the output of the angular-templateCache stream with the assets stream. If I make the templateStream spit out to a destination, it produces a single JS file. I assume I can take the output of that stream and add it into the assets to be included into the assets stream.
gulp.task('usemin:dist', ['clean:dist'], function() {
var templatesStream = gulp.src([
'./app/**/*.html',
'!./app/index.html',
'!./app/404.html'
]).pipe(templateCache({
module: 'myCoolApp'
}));
var assets = $useref.assets({
additionalStreams: [templatesStream]
});
return gulp.src('./app/index.html')
.pipe(assets)
.pipe(assets.restore())
.pipe($useref())
.pipe(gulp.dest('./dist/'));
});
After this runs, the resulting JS file does not have the templates contents (only the contents of the JS files that are in my html file).
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Merging Streams in Java - Baeldung
In this quick article, we explain different ways of merging Java Streams – which is not a very intuitive operation.
Read more >Merging and Concatenating Streams - SmallRye Mutiny
Merging or concatenating streams is a frequent operation which consists in taking multiple streams and creating a new Multi out of them.
Read more >flutter - Combine multiple streams not at the same time
Searching for a way to combine multiple streams into single stream but add each stream in different time without dropping the stream listeners....
Read more >Merging down and copying up between streams - Perforce
To propagate change between streams that are not directly connected, click the Browse button on the Merge or Copy dialog, then click the...
Read more >Merge Notes and Streams | Fellow Help Center
Note: While private/shared streams and meetings streams can be merged into each other, you'll only be able to merge content into a 1-on-1....
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 Free
Top 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
I tried the same with the new version of useref 3.0.8 and it doesn’t work. When I add additionalStreams it immediately stops concatenate files, just copy them. But it replaces entries in index.html to target. In addition it tries to add templates.js (I see it via debug and comments in the file)at the beginning of the each section (I have 4) , never mind I add entry to the html or not.
Sure!