FatehAK / vite-plugin-image-optimizer

Optimize your image assets using Sharp.js and SVGO.
MIT License
311 stars 15 forks source link

Errors hidden behind "failed optimization" message #4

Closed mfjordvald closed 1 year ago

mfjordvald commented 1 year ago

Currently when an error happens it's hidden behind a generic failed message. This makes it difficult to debug what is going wrong. Might make sense to collect errors and present them at the end of the build process.

https://github.com/FatehAK/vite-plugin-image-optimizer/blob/main/src/index.js#L54

FatehAK commented 1 year ago

Good idea! Will look into it

FatehAK commented 1 year ago

This has been implemented with version 1.0.5.

A sample screenshot: Screen Shot 2022-12-31 at 6 05 37 PM