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

采用分包后微信小程序仍超出大小 #332

Closed
Mr-FSM opened this issue Nov 18, 2019 · 1 comment
Closed

采用分包后微信小程序仍超出大小 #332

Mr-FSM opened this issue Nov 18, 2019 · 1 comment
Labels
cli fixed help wanted Q&A

Comments

@Mr-FSM
Copy link

Mr-FSM commented Nov 18, 2019

bug描述
采用分包后大小仍是超出,查看具体文件发现外层和static里面有两个componets并且都很大

复现bug的步骤

  1. cml dev

问题截图
image

编译环境信息

  • chameleon-tool 版本:[e.g.1.0.3]
  • nodejs版本、npm版本:[node v12.4.0、npm 6.10.1]
  • 电脑操作系统: [e.g. macOS High Sierra 10.13.6]

运行环境信息

  • 端版本: [e.g. 微信小程序 7.0.3]
@Mr-FSM Mr-FSM added the bug label Nov 18, 2019
@jimwmg
Copy link
Collaborator

jimwmg commented Nov 24, 2019

参考这个优化:https://github.com/beatles-chameleon/cml-subpage
预期主包体积降低 40%!

已有开发者尝试,优化结果如下:

优化前:

WechatIMG17

优化后:

WechatIMG18

@jimwmg jimwmg closed this as completed Nov 27, 2019
@startheart startheart added cli fixed help wanted Q&A and removed bug labels May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli fixed help wanted Q&A
Projects
None yet
Development

No branches or pull requests

3 participants