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

确认老版本 google-closure-compiler-js (20161201.0.1)能获得大的多的压缩率的原因 #533

Open
chuan6 opened this issue Aug 25, 2018 · 1 comment
Assignees

Comments

@chuan6
Copy link
Contributor

chuan6 commented Aug 25, 2018

意外发现 20161201.0.1 版本的 google-closure-compiler-js 能把 tbsdk.umd 包从 500 来 KB 压到 100 KB,而较新版的却只能压到 200 多 KB。需要确认一下,新版本的 google-closure-compiler 是否可以有选项可以设置,优化包大小。

@chuan6 chuan6 self-assigned this Aug 25, 2018
@chuan6
Copy link
Contributor Author

chuan6 commented Aug 25, 2018

压缩效果的差距主要来自变量、属性重命名优化,理论上 ADVANCED 模式都会做这个优化,但还不知道是什么原因导致,20170409 成为在 teambition-sdk 上应用重命名优化的最后版本,随后的版本,都(我是通过二分法尝试的)没有这个优化。

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