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

Mulitple src folders

tolvstein opened this issue · comments

Reposting in the correct project, sorry :)

Would it be possible to somehow set multiple src folders likes this:

src: [
'common/images/svg/',
'project1/images/svg/'
]

As it is right now, the script only handles the first src param and ignores the second one. I have multiple subprojects in which I would like to have both common svgs (used in multiple projects) and project specific svgs in different folders.

Hey @tolvstein,

thanks! ;)

I'll see what I can do about it. 👍

Cheers,
Joschi

@tolvstein I just did a quick test. Are you sure that you are working with the latest version of grunt-svg-sprite? Having multiple source directories seems to work just fine for me (with and without cwd argument). Could you please post your complete Grunt task? Thanks!

@tolvstein Any progress on this?

@tolvstein I'll close this for now. Please feel free to reopen the issue in case you still got problems.