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

Multiple output sprites?

ogonkov opened this issue · comments

Is there a way to have single task with multiple output?

What i'm trying to do is convert such folders structure:

projectA
  componentA
    a.svg
    b.svg
  componentB
    c.svg
    d.svg
projectB
  componentA
    a.svg
    b.svg
  componentB
    c.svg
    d.svg

to

projectA
  componentA
    sprite.scss
  componentB
    sprite.scss
projectB
  componentA
    sprite.scss
  componentB
    sprite.scss
dist
  projectA
    componentA
      sprite.svg
    componentB
      sprite.svg

  projectB
    componentA
      sprite.svg
    componentB
      sprite.svg

Folders structure is not that important, i stuck trying to have multiple sprites.

I can write some bootstrap task/function that would generate task config for component, but may be there is more simple way to have similar output with multiple sprites?

@ogonkov Unfortunately, the answer is simple: No, at the moment there's no way to have a single task creating multiple sprites (regardles of the folder structure).