Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

all icons loaded, allways #5

Open
silveltman opened this issue Mar 1, 2025 · 1 comment
Open

all icons loaded, allways #5

silveltman opened this issue Mar 1, 2025 · 1 comment

Comments

@silveltman
Copy link

I think when importing an icon, ALL icons are loaded. whenever I import 1 icon and use it in my template the HMR reload time goed from <100ms to almost 10 seconds.

Or is it something I'm doing wrong?

@silveltman
Copy link
Author

solution, use path imports:

import Discord from 'simple-icons-astro/Discord'
import Facebook from 'simple-icons-astro/Facebook'
import Github from 'simple-icons-astro/Github'
import Instagram from 'simple-icons-astro/Instagram'
import Tiktok from 'simple-icons-astro/Tiktok'
import Twitch from 'simple-icons-astro/Twitch'
import X from 'simple-icons-astro/X'
import YouTube from 'simple-icons-astro/Youtube'

Would be a good idea to change the docs accordingly

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant