gruntjs / grunt-contrib-imagemin

Minify PNG, JPG, GIF and SVG images.
https://gruntjs.com
MIT License
1.21k stars 175 forks source link

Duplicates folder on Dropbox #366

Closed humso closed 7 years ago

humso commented 8 years ago

I've my project folder on dropbox. When running "grunt imagemin" it successfully minifies the image from the source folder but it creates a duplicate root folder inside the destination folder. This issue didn't exist on previous versions of imagemin i.e "grunt-contrib-imagemin": "~0.8.1" which I'm using exactly the same code.

imagemin: { dist: { files: [{ expand: true, cwd: 'src/images', src: ['**/*.{png,jpg,gif}'], dest: 'dist/assets' }] } },

untitled-1

kevva commented 7 years ago

Can you try out 2.0.0? If the issue still persists I'll reopen.