Closed sanjaydev closed 9 years ago
Hi @sanjaydev,
your configuration needs to enable at least one sprite mode. Please see here for further information about the output modes and / or use the configuration kickstarter for creating a config object.
Also, please give your issue a proper title and formating next time, that makes it easier to digest! ;)
Cheers and good luck, Joschi
What about the modeless option? I can't find a way to only optimize svgs without creating the sprite without getting this error.
@cshold To be honest: I didn't try that in ages, might be broken?! If so, would you mind opening another issue? I'd go for SVGO alone if I only wanted to optimize the SVG.
In any case, as @sanjaydev added spacing
and dimension
options, I didn't expect him to optimize the SVGs only.
I tried going with SVGO alone, but it won't convert to symbol
elements which is a big bummer. At some point in the svg sprite creation, I want to hijack it so the output goes to separate files instead of into a sprite. Any pointers, or is that well beyond the scope of this?
Ah, right. SVGO of course does optimization only. On the other hand, with a modeless configuration (even if it worked) you wouldn't get symbols either, as this is exclusive to the symbol mode. I'll try to fix the modeless run however as soon as I can.
My Code in Gruntfile.js
using run command: grunt svg_sprite
PLEASE HELP ME TO FIX THIS ISSUE.