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

想问下按照文档说明安装并使用了,但是为什么项目打包的体积还是没有变化呢😭 #2

Open
aimerthyr opened this issue Dec 25, 2024 · 2 comments

Comments

@aimerthyr
Copy link

image image image image
@Vanisper
Copy link
Collaborator

Vanisper commented Dec 25, 2024

你好,我不太清楚你的项目有没有做分包处理?

image

你点一下这个地方,看看有几个包,除了主包还有没有其他包。


要想实现对主包的包大小能有所优化的前提是:项目里面有做分包的规划。
也就是说,要规划好哪些模块、页面是属于主包的,哪些作为分包。
个人建议,除了tabbar的页面、模块,其余的模块都需要规划为分包(子包)。


还有一种可能就是微信开发者工具的缓存的问题。
可以清理一下微信开发者工具的缓存之后,再重启下微信开发者工具,最后看看效果。

image

@Vanisper
Copy link
Collaborator

盼复

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