htmlburger / wpemerge-theme

An organized, ES6 and SASS powered theme taking advantage of the WP Emerge framework. 🚀
https://wpemerge.com/
GNU General Public License v2.0
286 stars 33 forks source link

Sprite with SVG icons? #11

Closed kristjankoppel closed 4 years ago

kristjankoppel commented 6 years ago

Is it correct that at the moment developers can't make sprite out of svg files? I looked at config files and so that something like spritesmith is used. I also searched for spritesmith documentation and didn't find anything about svg's.

So if it is correct then i propose for a feature request here :) Maybe something that can deal with svg files and make sprite out of them. OR something that would generate data:uri code.

atanas-dev commented 6 years ago

Hi @kristjankoppel ,

Yes, spritesmith does not support svg - if focuses on raster images instead. Marking this as a feature request.

kristjankoppel commented 6 years ago

If you can put a milestone to this feature then it would be awesome. With Gulp i used https://github.com/jkphl/gulp-svg-sprite

At the moment i'll then keep svg's in a seperate files or convert them to data:uri.

atanas-dev commented 4 years ago

An SVG sprite has been added in 0.16.0 👍