svg-inline-loader
svg-inline-loader copied to clipboard
inline styles?
trafficstars
I have a few svgs and they have the same classes .cls-1 and/or .cls-2. They overwrite each other's style. If they could be auto inlined that would be great!
<defs>
<style>
.cls-1 {
fill: #3d5a98;
}
.cls-2 {
fill: #fff;
}
</style>
</defs>
@stevemao You can use the classPrefix option to avoid overwriting styles. See https://github.com/webpack-contrib/svg-inline-loader#classprefix-boolean--string
@kinetifex I'll give it a shot! Looks like it's working. Cheers!