Closed mrleblanc101 closed 1 year ago
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
svgo
prefixIds
id
vue-svg-inline-loader
This plugin should send the file path to
For exemple, the ![Capture d’écran, le 2022-07-07 à 10 52 04](https://user-images.githubusercontent.com/17392251/177804092-ad25b6a5-6ec0-4773-8bb8-688b6dcb7d00.png)
svgo
. The path is an optional, but very useful param forsvgo
. https://github.com/svg/svgo#optimizeprefixIds
plugin use the file path to generate uniqueid
and class. In Vue 2, I usedvue-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