Closed gggin closed 8 years ago
使用了还有es5-shime的标准用法
new webpack.optimize.UglifyJsPlugin({ compressor: { screw_ie8: true } })
可以看到报错内容吗? 代码不压缩的时候不会报错吗?
另外可以加上 sourceMap,这样可以看到压缩前的代码(不过好像 IE8 还不支持),详见:https://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
太贴心了 不压缩也会报错
Thank you!
You are welcome!