FatehAK / vite-plugin-image-optimizer

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

Option to disable ansi colors + fix size comparison #19

Closed QuentiumYT closed 1 year ago

QuentiumYT commented 1 year ago

What is the purpose of this pull request?

Description

This pull request add a way to disable ansi colors, causing some problems on old shell or parsing shell's output. I'm using it on a CI server and it shows the color character. I noticed since the last update there was a new message but it showed "saved size in kB / saved size in MB" which didn't make sense to me (saved / original looks more natural) Also changed the unit to kB instead of KB (not correct)

Checks

Additional Context

Will change the display for users using version 1.1.5

FatehAK commented 1 year ago

Hey @QuentiumYT, the changes make sense. Thank you for the PR. I will make a release shortly.

FatehAK commented 1 year ago

Please update to v1.1.6. Just released your changes 😀