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

[ nuxt-icon module ] How to prefetch my icons? #99

Open
phantodev opened this issue Aug 14, 2023 · 2 comments
Open

[ nuxt-icon module ] How to prefetch my icons? #99

phantodev opened this issue Aug 14, 2023 · 2 comments

Comments

@phantodev
Copy link

Hello guys... i need to prefetch my icons in my application.

There are a way to do this? I can't find anything about this in documentation.

Thans guys!

@phantodev phantodev changed the title How to prefetch my icons? [ nuxt-icon module ] How to prefetch my icons? Aug 14, 2023
Copy link
Member

atinux commented Aug 14, 2023

I am thinking to support this by leveraging a unplugin plugin in order to know all the icons used in the Vue code to preload them.

Any help is welcome

Please find a small example on how to do it: https://stackblitz.com/edit/github-d95vfk?file=modules%2Fsafelister%2Funplugin.ts

@misbahansori
Copy link

It would be nice to have a configuration for the icon collection so that we can prefetch the icon collections we've specified.

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

3 participants