vbenjs / vite-plugin-svg-icons

Vite Plugin for fast creating SVG sprites.
MIT License
819 stars 111 forks source link

Insert before closing Body Tag #36

Closed danimalweb closed 2 years ago

danimalweb commented 2 years ago

Sprites can get pretty large. Is it possible to explore the idea of changing the place that the sprite is inserted? Currently, it's in the opening Body Tag. If possible I would love an option to move it to before closing Body Tag.

Ref: https://github.com/anncwb/vite-plugin-svg-icons/blob/fe09334b4dddf49fc96ce045f27ae08892fa4f36/src/index.ts#L149