grunt-svg2png icon indicating copy to clipboard operation
grunt-svg2png copied to clipboard

Grunt 'rename' fix

Open samdbeckham opened this issue 10 years ago • 3 comments

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.

samdbeckham avatar Oct 30 '14 13:10 samdbeckham

This might make the issue a little clearer.

Config: Result:

samdbeckham avatar Oct 30 '14 13:10 samdbeckham

Any thoughts on this @dbushell ?

samdbeckham avatar Dec 05 '14 14:12 samdbeckham

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.

theme avatar Jun 02 '15 11:06 theme