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

UglifyJsPlugin 造成WXS报错 #116

Open
xyyaya opened this issue Jul 9, 2019 · 1 comment
Open

UglifyJsPlugin 造成WXS报错 #116

xyyaya opened this issue Jul 9, 2019 · 1 comment

Comments

@xyyaya
Copy link

xyyaya commented Jul 9, 2019

最小复现仓库:
https://github.com/xyyaya/minapp-bug-demo

注释掉
dist\config\webpack.config.js
中的
if (mode === 'production') { if (!env_1.env.pretty) { var UglifyJsPlugin = require('uglifyjs-webpack-plugin'); minimizer.push(new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: sourceMap, uglifyOptions: { mangle: { reserved: ['module', 'exports', 'global'] } } })); } }
后正常

@xyyaya xyyaya changed the title UglifyJsPlugin 造成WXS页面报错 UglifyJsPlugin 造成WXS报错 Jul 9, 2019
@xyyaya
Copy link
Author

xyyaya commented Jul 9, 2019

复现方法:
npm run build 后使用微信开发工具打开 dist 目录

image

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

1 participant