JeffreyWay / Laravel-Elixir-Rollup

Official Rollup extension for Laravel Elixir. (Includes support for .vue files).
29 stars 12 forks source link

Multiple rollup tasks overwrite files on gulp watch #14

Open thekonz opened 7 years ago

thekonz commented 7 years ago

I have a weird issue with multiple rollup tasks. My elixir mix in the gulpfile.js looks a bit like this:

mix.rollup('path/to/first/app.js', 'public/js/first')
    .rollup('path/to/second/app.js', 'public/js/second');

When I execute gulp, everything is fine. I get my first app.js and my second app.js just how i want them. Now the weird part: When I execute gulp watch, it inserts the code of the second js into the first js, so that I end up with two same JS files.

How will I be able to rollup multiple scripts into multiple scripts while also watching them?