Laravel 5.4 Mix How to Mangle / Uglify / Obfuscate

2019-09-14 08:08发布

问题:

Laravel 5.4 - Mix How to Mangle / Uglify / Obfuscate Scripts

I use gulp on previous version.

Thank you

回答1:

From the Laravel Mix documentation:

mix.options({
  extractVueStyles: false,
  processCssUrls: true,
  purifyCss: false,
  uglify: {},
  postCss: []
});

You can use the uglify option to merge any custom uglify options that your project requires