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

icon 应该是选择性导入,而不是全量导入。 #1287

Open
houqingbin opened this issue Nov 5, 2023 · 0 comments
Open

icon 应该是选择性导入,而不是全量导入。 #1287

houqingbin opened this issue Nov 5, 2023 · 0 comments

Comments

@houqingbin
Copy link

这个功能解决了什么问题?

icon选择性导入可以大大减少微信小程序打包的后的main.wxss或者app.wxss的体积,现在全量引入icon,导致打包的后的体积会额外多出40kb左右,组件可以按需引入,icon应该也要按需导入

你期望的 API 是怎样的?

在使用icon时,只是会需要使用少量,一部分的iconm根据使用来引入,而不是一股脑的全量引入

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