twolfson/grunt-spritesmith

SVG support

Closed this issue · 1 comments

Stumbled upon this, and was extremely happy with options and premise
Then tried to load some svg icons and got an error
Can you please support SVG like this one : https://npmjs.org/package/dr-grunt-svg-sprites?

This tool was designed for pixel graphics, not vector graphics. The library you linked to is intended to support vector graphics with a fallback to pixel graphics. If we were to add support for that, it would be an after-thought and not well executed.

One of the engines should support this (e.g. phantomjs)

https://github.com/Ensighten/grunt-spritesmith#requirements

If there are none that do, then consider taking a grunt plugin that converts SVGs to PNGs. Then, consume those files via grunt-spritesmith. This would stick to everything doing one thing well and allow for sizing up/down to your needs.

https://npmjs.org/package/grunt-svg2png