I want to share common icons between projects using nuxt layers. I would prefer to keep my icons in svg files. Unfortunately, the nuxt-icons module does not meet my expectations (import all icons), so I decided to use your solution.
When I hold the icon in /components/global everything works great. Unfortunately, when I keep this icon in a nuxt layer, I get a string with the name instead of the icon.
I would also love to be able to use param-case in the name property.
Reproduction: https://stackblitz.com/edit/github-qddkmm?file=base/nuxt.config.ts
I want to share common icons between projects using nuxt layers. I would prefer to keep my icons in svg files. Unfortunately, the
nuxt-iconsmodule does not meet my expectations (import all icons), so I decided to use your solution.When I hold the icon in
/components/globaleverything works great. Unfortunately, when I keep this icon in a nuxt layer, I get a string with the name instead of the icon.I would also love to be able to use
param-casein thenameproperty.Reproduction: https://stackblitz.com/edit/github-qddkmm?file=base/nuxt.config.ts