icon icon indicating copy to clipboard operation
icon copied to clipboard

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

Open phantodev opened this issue 1 year ago • 2 comments

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 avatar Aug 14 '23 13:08 phantodev

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

atinux avatar Aug 14 '23 15:08 atinux

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

misbahansori avatar Nov 09 '23 06:11 misbahansori