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?
I have a weird issue with multiple rollup tasks. My elixir mix in the gulpfile.js looks a bit like this:
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 executegulp 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?