vite-svg-loader
vite-svg-loader copied to clipboard
`svgo.optimize` missing path option
This plugin should send the file path to svgo
.
The path is an optional, but very useful param for svgo
. https://github.com/svg/svgo#optimize
For exemple, the prefixIds
plugin use the file path to generate unique id
and class.
In Vue 2, I used vue-svg-inline-loader
which was correctly setup to do this.
See https://github.com/oliverfindl/vue-svg-inline-loader/blob/28051895a5db3c3beba6025963106566d4cee84a/src/index.js#L234