grunt-svg2png
grunt-svg2png copied to clipboard
Grunt 'rename' fix
There was an issue that cropped up when you used Grunt's rename function in the grunt config. Instead of saving the file to the desired location, it would create a folder at that location and save the icon within it, preceded by the CWD folder structure.
Reading that back, it makes very little sense (apologies, I'm a little hungover today), try it it out though and you'll see what I mean.
I've popped in some tests, updated the config and squashed the bug though.
This might make the issue a little clearer.
Config:
Result:
Any thoughts on this @dbushell ?
I stumbled on the same stone. Seems #9 introduced this. Maybe the default behavior is better not mutate file's src and dest attribute. Maybe an option 'preserve-path' for #9 's needs. Thanks @dbushell.