F
F
freeeeez2018-09-03 15:10:29
gulp.js
freeeeez, 2018-09-03 15:10:29

Elixir not minifying css/js files?

gulpfile.js contains:

mix.scripts('./public/new/js/add.js');
mix.version('js/add.js);

It creates the add-74cdb8386d.js file in /build/new/js but it is not minified.
If you remove version() from gulpfile.js and set the path to the script directly:
mix.scripts('./public/new/js/add.js','public/build/new/js/add.js');

it saves the already minified /build/new/js/add.js file but no version
How do I make sure that I end up with both the min file and the version?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Plisko, 2018-09-04
@AmdY

https://github.com/JeffreyWay/laravel-mix/blob/mas...
And do not forget that compression will only be in pro mode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question