vbenjs / vite-plugin-svg-icons

Vite Plugin for fast creating SVG sprites.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate a .svg file instead of an embedded SVG tag

Ariane-B opened this issue · comments

Is it possible to use this plugin in a way where a .svg asset file for the sprite is generated and it can be <use>d from there, instead of directly embedding an <svg> tag in the page's DOM?

If not, is it something you'd consider? The separate file approach can better exploit visitors' browsers' cache, so I think it'd be all-around better.

I would also love this option