jeudi 1 décembre 2016

Laravel elixir combine some file, but minify just some of them

Iv've got three files: a.min.js, b.min.js and c.js

I would like to minify c.js, and then combine a + b + c into a unique file using laravel elixir. Is it possible? Now I'm using this script:

elixir(mix => {
    mix.sass('app.scss')
            .webpack('app.js')
            .combine([
                'resources/assets/js/plugins/a.min.js',
                'resources/assets/js/plugins/b.min.js',
                'resources/assets/js/plugins/c.js'
            ], 'public/js/plugins/xxx.js');
});

But obviously c.js is not minified.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire