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

打包优化 uglifyjs-webpack-plugin 配置 #1488

Merged
merged 2 commits into from
Nov 21, 2018
Merged

打包优化 uglifyjs-webpack-plugin 配置 #1488

merged 2 commits into from
Nov 21, 2018

Conversation

Veveue
Copy link
Contributor

@Veveue Veveue commented Nov 21, 2018

去console,压缩,注释

@sorrycc sorrycc merged commit f533192 into umijs:master Nov 21, 2018
@dllnaoki
Copy link

dllnaoki commented Nov 27, 2018

想知道,这样配置为什么我打包会报这个错误?☹


8e1c521ec2b4ac42a0ad3a6a9abc4b8

下面是package.json

98c4809c8af70355bf4d7e2f1f2af37

@Veveue
Copy link
Contributor Author

Veveue commented Nov 27, 2018

package.json

删掉 package.json 里 uglifyjs-webpack-plugin 重新安装依赖试试

@dllnaoki
Copy link

package.json

删掉 package.json 里 uglifyjs-webpack-plugin 重新安装依赖试试

@Veveue 重安仍然有问题啊〒▽〒
原因找到了,是因为我用了es6--->这边有提出来

压缩工具 uglify 又只支持 es5 的语法,遇到 const、let、()=> 类似的语法,就抛错了

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

Successfully merging this pull request may close these issues.

3 participants