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

IE8 下访问webpack.UglifyJsPlugin 压缩的代码出错 #43

Open
nimoc opened this issue Feb 13, 2017 · 3 comments
Open

IE8 下访问webpack.UglifyJsPlugin 压缩的代码出错 #43

nimoc opened this issue Feb 13, 2017 · 3 comments

Comments

@nimoc
Copy link

nimoc commented Feb 13, 2017

SamHwang1990/blog#6

如果需要使用 webpack.UglifyJsPlugin 并兼容IE8 ,请使用 webpack@1.13.2。

@flyher
Copy link

flyher commented May 9, 2017

@nimojs
所以1.5.0版本也未能解决这个问题了?

@nimoc
Copy link
Author

nimoc commented May 9, 2017

@flyher 1.5.0 文档说修复了,但我没测试过。目前已知用的是1.13.2 如果要用 1.5.0+记得设置

{
  mangle: {
    screw_ie8: false
  }
}

@flyher
Copy link

flyher commented May 9, 2017

@nimojs
试了一下:
1.3.2 和 1.5.0 在不使用 webpack.optimize.UglifyJsPlugin 的情况 IE8下正常工作;
1.3.2 使用 webpack.optimize.UglifyJsPlugin IE8下正常工作;
1.5.0 使用 webpack.optimize.UglifyJsPlugin IE8下报错.

不知道是我自己的问题,还是确实还有其它问题,(并不是react项目), 我正在查找...

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

2 participants