Skip to content
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

preserve paths with imagemin-cli #348

Open
Pomax opened this issue Mar 24, 2020 · 6 comments
Open

preserve paths with imagemin-cli #348

Pomax opened this issue Mar 24, 2020 · 6 comments

Comments

@Pomax
Copy link

Pomax commented Mar 24, 2020

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?

@wfabritius
Copy link

BUMP

This is ongoing since 2016..
#191

@Pomax
Copy link
Author

Pomax commented Mar 30, 2020

@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).

@vraravam
Copy link

vraravam commented Oct 8, 2020

I am also unable to use the tool for this exact reason. Could this be bumped up please?

@vraravam
Copy link

vraravam commented Oct 8, 2020

Is this solved by #353 ? IF so, can it be merged and a new version released please?

@loranger
Copy link

loranger commented Apr 1, 2021

Hello,
Is there any news regarding the essential feature, please ?

@leesei
Copy link

leesei commented Jun 3, 2021

#353 has some pending issue.
Do chime in and make it through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants