malchata / rollup-plugin-imagemin

Imagemin meets Rollup!
25 stars 7 forks source link

Preserve directory tree #3

Closed OzymandiasTheGreat closed 5 years ago

OzymandiasTheGreat commented 5 years ago

Allow specifying path as preserveTree option and use it to determine directory tree structure to preserve. Defaults to false, if true defaults to process.cwd(). Again, I had to rename all scripts to .js because otherwise neither the plugin nor the tests would run. I even tried esm instead of babel with no luck.

malchata commented 5 years ago

LGTM! Merging.