一、在build文件的webpack.prod.conf.js文件添加以下代码
new UglifyJsPlugin({ uglifyOptions: { compress: { warnings: false }, //处理I0S10白屏 mangle: { safari10: true }, }, sourceMap: config.build.productionSourceMap, parallel: true }),
原文地址:https://www.cnblogs.com/angelyan/p/11082659.html
时间: 2024-11-01 14:48:45