imagemin
imagemin copied to clipboard
preserve paths with imagemin-cli
Using imagemin images/**/*.png --out-dir=dist/images
does not preserve the fairly crucial dir structure, dropping every image in the output dir, irrespective of what the glob **
matched. This means that things go very wrong when using, for instance:
+ images
| |
| + icon.png
|
+ users
| |
| + icon.png
|
+ groups
|
+ icon.png
Can imagemin-cli (and imagemin?) be update to preserve the subpath for images so that they get written to the output dir with the same dir structure as they were consumed?
BUMP
This is ongoing since 2016.. https://github.com/imagemin/imagemin/issues/191
@sindresorhus any chance to get this in? Especially with about a million weekly downloads, it seems weird to leave this bug in (because anything that can destructively overwrite files is def. not a feature).
I am also unable to use the tool for this exact reason. Could this be bumped up please?
Is this solved by #353 ? IF so, can it be merged and a new version released please?
Hello, Is there any news regarding the essential feature, please ?
#353 has some pending issue. Do chime in and make it through.