Laravel-Elixir-Rollup
Laravel-Elixir-Rollup copied to clipboard
Multiple rollup tasks overwrite files on gulp watch
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?