Closed rku4er closed 1 year ago
It has been fixed by setting svgo: false :)
Great that you figured out it's SVGO doing this, if I had to guess it's the removeHiddenElemens plugin. If you do want to use the other features that SVGO has, you can also specifically disable that plugin by passing an object to the svgo
option as well.
Thanks for the hint! If anyone else needs this, I used these settings:
svgo: {
plugins: [
{
name: 'removeHiddenElems',
active: false
}
]
}
When I set either "visibility: hidden" or "display: none" as a style attribute, the plugin produces an empty SVG sprite. While I'm not entirely sure if this is a bug or not, I consider it to be incorrect behavior. It's often necessary to hide the SVG sprite visually when inserting it on a page. Am I missing anything in the settings?
My config is pretty simple: