-
Notifications
You must be signed in to change notification settings - Fork 5
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
Increasing the "through2" highWaterMark #19
Comments
Do you have some code? I suspect you are not returning the stream inside the flatMap callback. As the comment in your link says, if nothing is consuming the stream then it won't continue processing. |
I
|
I can actually update my snippet to the following and get the same result without
|
Ahhh, I see what needs to be done now from that post I shared regarding the "consumption". I am all set. Thanks for the quick responses!
|
Here is how I would do it: gulp.task('example', function(){
return gulp.src(librarySources)
.pipe(plugins.flatmap(function(stream, file)
{
var basePath = file.path.replace(__dirname+'/'+sourceLib, '');
console.log(basePath);
// Run gulp on individual file
return gulp
.src([ ... ])
.pipe( ... );
}))
.pipe( gulp.dest("path/to/production/") );
}); This way the task isn't marked as done until it is actually done processing (by returning the stream) and you consume the entire stream (by having |
I am using your plugin to loop through a set of SCSS files and compile them into beautified CSS for documentation purposes. Anyways, I am running into an issue where the amount of loop iterations is maxing out at 16 files. After doing some research, I see that there is a property in "through2" called "highWaterMark" which is set to 16 by default.
gulpjs/gulp#716
Is there a way to update this number through your plugin?
The text was updated successfully, but these errors were encountered: