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

引入图标库的图标后很影响项目的打包速度 #870

Open
maddenBoy opened this issue Apr 27, 2024 · 0 comments
Open

引入图标库的图标后很影响项目的打包速度 #870

maddenBoy opened this issue Apr 27, 2024 · 0 comments

Comments

@maddenBoy
Copy link

未引入图标库的图标时,打包时仅有29个modules transformed,built in 1.22s
image
引入@vicons/antd后,项目中随便使用一两个图标,打包时有820 modules transformed,built in 2.64s
image
继续加入@vicons/fluent后,项目中再随便使用一两个图标,打包时直接变成10891 modules transformed,built in 24.60s
image

当项目中使用的图标包越多,即使在项目中只使用到了包中的少部分图标,对打包项目构建的速度也会影响很大

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