V
V
Vanya Huk2018-07-31 02:29:44
webpack
Vanya Huk, 2018-07-31 02:29:44

How to minify webpack js file in laravel?

Here is the webpack config

let mix = require('laravel-mix');

mix.react('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css');

the source file via npm run production takes about 1 mb,
is it possible to somehow minify the file?
PS: React application

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question