shakyShane / gulp-svg-sprites

Create SVG sprites or compile to <symbols>
MIT License
334 stars 45 forks source link

Add cleanconfig option to README #55

Open roadhump opened 10 years ago

roadhump commented 10 years ago

It takes me plenty of time to find out that there is SVGO inside this plugin and I can configure it. I guess it would be useful to make it clear in README.

mikestreety commented 9 years ago

As per this conversation (https://github.com/shakyShane/gulp-svg-sprites/issues/18) I think it would be best if SVGO was removed. I didn't realise it was in there and so pass my SVGs through SVGO before and after

loopj commented 9 years ago

:+1:

arminrosu commented 7 years ago

Sorry for bumping such an old thread, but this is still an issue. Here's my use case:

I had a weird bug, where base64 encoded, svg sprites would render black in IE. I traced this down to minified fill values, e.g. fill="#fff" instead of fill="#ffffff".

svgo has a default setting currentColors.shorthex = true. This is applied via svg-sprites. Took me a while to figure this out.