ben-eb / gulp-svgmin

Minify SVG files with gulp.
MIT License
340 stars 34 forks source link

How to generate URI Encoded SVGs? #10

Closed enapupe closed 10 years ago

enapupe commented 10 years ago

I'm using svgmin together with https://github.com/akoenig/imacss/, which is a plugin that generates inline css for my SVGs, but for it to work, the svg must be URI encoded.. SVGO has a --datauri argument, is there any way to call this within gulp? Ty

enapupe commented 10 years ago

Actually I just did a encodeURIComponent on the output, no need for SVGo to do it.

ben-eb commented 10 years ago

:+1: