JeffreyWay / Laravel-Elixir-Rollup

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

rollup creates `public/js/all.js` file on each run #15

Closed ctf0 closed 7 years ago

ctf0 commented 7 years ago

require('laravel-elixir-vue-2');

elixir.config.css.minifier.pluginOptions = { keepSpecialComments: 0 }; elixir.config.sourcemaps = false;

elixir(mix => { mix .sass('app.scss', 'public/assets/css/app-min.css') .rollup(['app.js', 'extra.js'], null, 'public/assets/js/app-min.js') } );



which produce
* public/assets/js/app-min.js
* public/js/all.js

if i removed `js/all.js` it will be re-added again 

EDIT:
actually rollup doesn't work with array syntax
`.rollup(['app.js', 'extra.js'], null, 'public/assets/js/app-min.js')` 
wont work