nuxt-modules / svg-sprite

Optimize SVG files and combine them into sprite
https://codesandbox.io/s/github/nuxt-community/svg-sprite-module/
MIT License
301 stars 42 forks source link

how to change the symbol id's prefix inside the sprite? #227

Open fahdaddi opened 3 years ago

fahdaddi commented 3 years ago

is there any way to change the id prefix generated in the sprite (ie: id="i-icon-name"). in the previous example I need to remove the prefix i- so that the generated symbol looks like <symbol id="arrow-forward">...</symbol>

Also if it's possible to remove the xmlns attribute from the svg when using <svg-icon name="arrow-forward" />

farnabaz commented 3 years ago

Any specific reason why you want to remove i- prefix form sprite ids?

Also if it's possible to remove the xmlns attribute from the svg when using <svg-icon name="arrow-forward" />

This is not possible at the time