poppa / sveltekit-svg

SvelteKit plugin that makes it possible to import SVG files as Svelte components, inline SVG code or urls
MIT License
235 stars 23 forks source link

Pass filename to svgo #17

Closed ljani closed 2 years ago

ljani commented 2 years ago

This enables plugins to access the svg's path.

It is also recommended by svgo's docs: https://github.com/svg/svgo/tree/1b88baa123d9878c5b7de5bdc5350e1d7160cf35#optimize