Class name conflict with custom class name "icon"
ttqftech opened this issue · 1 comments
ttqftech commented
If the <style> area in a .vue file contains a custom class name "icon", the loader conflicts.
Any loaded svg will have the custom "icon" style.
using:
vite-svg-loader: Both 4.0.0 and 3.6.0 has this problem.
vite: 4.0.0
less: 4.1.3 (using <style lang="less" scoped>)
vue: 3.2.45
gkatsanos commented
@ttqftech use the prefixIds option of SVGO similar example: #94 (comment)