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

I know it's possible to make all the icons available globally. But would it be possible for those icons to be lazily loaded? #30

Open
Evertt opened this issue Mar 29, 2022 · 1 comment

Comments

@Evertt
Copy link

Evertt commented Mar 29, 2022

I just ran npm run build on my vue 3 project and my vendor.js file turns out to be 10MB!!!

And when I briefly scan the code of that file, it seems to be mostly filled with svg code. So I'm assuming that that's all the icons from coreui.

So I'm wondering if it's possible to let those icons load lazily, just whenever they're being called for in the templates.

Is that possible? And if yes, could you maybe help me get started on building that?

@mrholek
Copy link
Member

mrholek commented Mar 30, 2022

@Evertt please upgrade @coreui/icons to 3.0.0-0 v2 has a problem with tree shaking.

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