N
Nuxt5w ago
awacode

@nuxt/icon custom collection from public folder??

hi all, Our server bundle size is massive caused by nuxt icon. i guess it is because it includes all our svgs files as custom collections. Is it possible to have custom collections with svg files that are located under the public folder so that they do not get part of the bundle size? How would i need to configure this? At the moment they cannot be loaded
1 Reply
Wouter
Wouter5w ago
Not sure of this is what you want to achieve, but I was able to add 2 svg's as a custom iconSet like this: https://github.com/vernaillen/vernaillen.dev/blob/main/tailwind.config.ts The svg's are added inline in tailwind.config.ts, but I'm sure there must be a way to fetch them as files from the public folder
GitHub
vernaillen.dev/tailwind.config.ts at main · vernaillen/vernaillen.dev
Developer website of Wouter Vernaillen. Contribute to vernaillen/vernaillen.dev development by creating an account on GitHub.
Want results from more Discord servers?
Add your server