Laravel 5.4 Mix How to Mangle / Uglify / Obfuscate Scripts

北慕城南 提交于 2019-12-13 07:05:59

问题


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



来源:https://stackoverflow.com/questions/42870454/laravel-5-4-mix-how-to-mangle-uglify-obfuscate-scripts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!