Closed ctf0 closed 7 years ago
const elixir = require('laravel-elixir');
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
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') } );