svg-sprite icon indicating copy to clipboard operation
svg-sprite copied to clipboard

Different SVGO options for each sprite

Open oncode opened this issue 4 years ago • 3 comments

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.

oncode avatar Oct 23 '20 15:10 oncode

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 👍

farnabaz avatar Nov 04 '20 13:11 farnabaz

Thanks, I will have a look and try implement it. 👍🏻

oncode avatar Nov 11 '20 01:11 oncode

@oncode any updates on this feature? I just ran in a problem, where this would be extremely helpful :)

joachim-pryntad avatar Jan 14 '22 15:01 joachim-pryntad