svg-sprite
svg-sprite copied to clipboard
Different SVGO options for each sprite
Hello, thanks for the awesome module!
I was wondering if there is a possibility to use different SVGO options depending on the spritesheet that is generated. I would like to use the default one for monochromatic icons (/icons
) where I overwrite colors with currentColor (convertColors.params.currentColor = true
) and one for colored icons (/icons/colored
) where it doesn't overwrite them.
Hello @oncode, The idea seems intresting, in order to achieve this, we should refactor module core to support custom config based on sprite.
If you want to, contribution is more than welcome 👍
Thanks, I will have a look and try implement it. 👍🏻
@oncode any updates on this feature? I just ran in a problem, where this would be extremely helpful :)