Open Neoniq opened 4 months ago
Iconify icons should already be optimized. Do you mean for the custom svg icons? If in that case, I think it would make sense to have that. PR welcome if anyone wants to work on that. Thanks
Yes for custom icons of course. I'm seeing nuxt icons becomes kinda all in one solution, because it is close enough for me already
svgo for custom icon collection would be appreciated
We could just use the iconify tools and while/after parsing them into the collection we could just pipe them through cleanSVG and runSVGO. Also adding the corresponding options to our configuration.
See: https://iconify.design/docs/libraries/tools/icon/cleanup.html and https://iconify.design/docs/libraries/tools/icon/svgo.html
https://github.com/svg/svgo
There are nuxt modules with support for SVGO but they are not working out of the box with
nuxt/icon
(or not working at all like https://nuxt.com/modules/svg-sprite)So i think it is good addition to already most perfect module
I myself find it frustrating to fix
fill
andstroke
to be ofcurrentColor
. SVGO can do it for me just fine