-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade from v0.3.2 to v1.0.11 -> Changes? #32
Comments
Hi @ti-dev, please try this one (untested): 'svg_sprite': {
img: {
options: {
mode: {
css: true // <-- this is the important thing
}
},
src: ['web/img/**/*.svg'],
dest: ['web/img/gen']
}
} As of version 1.x, the mode: {
css: {
render: {
css: true, // <-- render CSS stylesheets
scss: true // <-- render Sass stylesheets
}
}
} Also, you might want to customize e.g. the sprite file name: mode: {
css: {
sprite: 'my/custom/sprite/name.svg'
}
} Please let me know if this works for you! Cheers, |
Thank you for the quick reply. With this configuration, it works to generate the file correctly:
The last problem is, that the I tried it with
But then I get a lot of |
First of all, I don't think it's ideal to use Second, as far as I understand, Oh, and by the way, the |
The dest has a Okay, I use
But I get the same error message and the created |
Could you please send me your very project files (and directory structure) along with conf complete configuration to joschi@kuphal.net? I'll try to figure out what's the problem. |
The problem occurs in
|
Ah, an important information: You're on Windows. That changes a lot. ;) I'll try to figure out the problem (which obviously is no problem under Linux ...) |
Yes, I am working on a Windows machine. That would be really nice if you can take a look into it. |
Good news: I could tackle the problem (which affected all platforms, by the way). Thanks for reporting this, support for To get a quick fix, please replace grunt-svg-sprite's task file Cheers, Joschi |
It works great with your latest |
Thanks for letting me know! Happy spriting! :) |
I used this in v0.3.2 in this way:
In this way, I only a "sprite.svg" file is written into "web/img/gen" directory.
Now I upgraded to the latest version v1.0.11 and I want to have the same behavior: I do this in this way:
I see this in my command line:
The problem is, no "sprite.svg" will be generated. So sth. has changed, but what's needed to change?
The text was updated successfully, but these errors were encountered: