Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build后不兼容ie8的解决方法 #57

Open
east119 opened this issue Jan 19, 2018 · 3 comments
Open

build后不兼容ie8的解决方法 #57

east119 opened this issue Jan 19, 2018 · 3 comments

Comments

@east119
Copy link

east119 commented Jan 19, 2018

@Array-Huang
build后在ie8运行会报错

image

解决方法:
plugins.product.config.js文件中
pluginsConfig.push(new webpack.optimize.UglifyJsPlugin({
compress: {
screw_ie8: false,//默认true,不支持ie8
warnings: false,
},
}));

@EagleChinaWu
Copy link

6666666

@Array-Huang
Copy link
Owner

谢谢意见,不过我想问一下这screw_ie8参数你是在哪看到的?我查官方文档里怎么是ie8

@east119
Copy link
Author

east119 commented Mar 7, 2018

在这里看到的
http://www.css88.com/doc/webpack2/guides/production-build/
UglifyJsPlugin插件最新的配置为
pluginsConfig.push(new webpack.optimize.UglifyJsPlugin({
compress: {
properties: false,
screw_ie8: true
},
output: {
beautify: true,
quote_keys: true
},
mangle: {
screw_ie8: false,
keep_fnames: true
},
comments: false
}));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants