svg-sprite / grunt-svg-sprite

SVG sprites & stacks galore — Grunt plugin wrapping around svg-sprite that reads in a bunch of SVG files, optimizes them and creates SVG sprites and CSS resources in various flavours

Home Page:https://github.com/svg-sprite/svg-sprite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom output filenames/paths?

scottastrophic opened this issue · comments

Does the Advanced Features documentation pointing to the main svg-sprite repo mean that those features are currently not accessible via options specified in the Gruntfile? I can't see anywhere in https://github.com/jkphl/grunt-svg-sprite/blob/master/tasks/svg_sprite.js that would provide a hook to change the output names and paths, but I wanted to make sure I'm not missing something. Thanks!

Hi @scottastrophic,

it's exactly the other way round: As stated in the grunt-svg-sprite docs, you can pass all of the svg-sprite options as options to your Grunt task (have a look at the basic example). Maybe this also clarifies a bit?!

Cheers,
Joschi

Oh, and maybe you'd want to use the brand new online configurator to kickstart your Gruntfile? (Very early stage, feedback welcome!)

The configurator proved super useful for figuring out exactly what I needed to do (change "true" to a configuration object). It's just about perfect, thanks very much.

Thanks. You're very welcome! :)