cascornelissen / svg-spritemap-webpack-plugin

SVG spritemap plugin for webpack
MIT License
207 stars 49 forks source link

Google chrome ignoring <mask> #188

Closed ka-terok closed 2 years ago

ka-terok commented 2 years ago

I use this icon and google chrome ignoring mask. But when i use this code in html in google chrome all ok. What I have to do to make it work with plugin?

ka-terok commented 2 years ago

pic (2)

cascornelissen commented 2 years ago

Not sure what's happening here without additional information (used configuration and/or reproducible repository) but my first guess would be that SVGO is cleaning this up, you can verify this by setting the output.svgo option to false.

ka-terok commented 2 years ago

new SVGSpriteMapPlugin(resources/frontend/images/icons/*.svg, { output: { filename:images/icons.svg, svgo: false, chunk: { keep: true } }, sprite: { prefix:icon-, generate: { title: false } } }),

cascornelissen commented 2 years ago

I'm sorry but I really need a bit more information than just some badly formatted plugin options...