laravel-elixir-browserify icon indicating copy to clipboard operation
laravel-elixir-browserify copied to clipboard

Making it pipe

Open lucadegasperi opened this issue 10 years ago • 2 comments

I'm trying to use this plugin together with the versioning one provided with elixir. Problem is the two don't pipe together. Any clue on how I could fix it? Is it a package problem or something different?

lucadegasperi avatar Feb 23 '15 19:02 lucadegasperi

Looks like browserify gulp task finish before browserify has finished building bundle, so gulp run next task from queue. Maybe it's problem with streaming.

skrajewski avatar Feb 27 '15 23:02 skrajewski

I think the problem is the returned stream object. As there is a loop over multiple browserify configurations, the first stream will complete and return whilst the remaining instances are yet to be compiled.

Using the callback passed into the task may be a better way to handle the task completion once the final browserify configuration has been passed and completed.

Daveawb avatar May 21 '15 14:05 Daveawb