Closed denieler closed 8 years ago
Order will be preserved only if you use streams, this is a known issue with gulp and buffers https://github.com/gulpjs/gulp/issues/300
@nfroidure wait, for concat
it works, why it doesn't work for restore
function for your plugin?
concat concats files as they come, gulp filter split them and feed 2 different streams which leads to concurrence issues i pointed out on gulp.
To be honest, i find it bad too, it should be fixed on Gulp itself. I gave a path on the Gulp issue to avoid it.
I had to use
.....
.pipe(gulpIf(fileCoffee, compileCoffee()))
.pipe(....
instead of your package because of this bug. Can you please add this to documentation of restore
function? Because it is not clear. Thanks!
@denieler feel free to, i do not use Gulp anymore ;)
Hi!
We've had a bug with modules order because of the issue in your
restore
function. It is not saving the order of files that was ingulp.src
before.Example:
In this example, on some CPUs you'll have order
file1, file3, file2
in the result.But
concat
save order fromgulp.src