-
Notifications
You must be signed in to change notification settings - Fork 94
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
Does not test for duplicate icons #99
Comments
On running the task multiple times, it'll also add the same icon to the output file each time. Should it clear the output file before adding definitions again? |
Maybe output an error? Another away to deal with it would be for:
To output:
A real world example would be attempting to compile two icon sets into one sprite sheet. Personally, I'm maintaining legacy icons while trying to minify the icon set. |
The thing is that although the files may be of the same name, generating the same ID. They could be completely different svgs, which the naming being the only similarity. I am thinking the error message might be the best way to deal with it. |
@Samic8 Yes, I think an error output would accommodate most situations. |
Just proposed a possible solution, which works for a project of mine with Pull Request #143 |
It is possible to produce duplicate svgs specifying files with the same name in different directories
gruntfile.js
Result SVG
The text was updated successfully, but these errors were encountered: