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

Only show actually compressed images in success message #266

Merged
merged 1 commit into from
May 30, 2017

Conversation

kevva
Copy link
Contributor

@kevva kevva commented May 29, 2017

Opted to just silently ignore files that's already minified. We could add them to the success message but I couldn't figure out a nice way to format it. Not sure if it's that useful either.

What this solves is the "false positives" that happens when users are trying to optimize images without plugins that supports them. E.g. when piping SVG images but without the imagemin-svgo plugin. Prior to this PR, we would report these images as minified in the success message.

Fixes #251.

@sindresorhus sindresorhus merged commit f119bfe into master May 30, 2017
@sindresorhus sindresorhus deleted the ignored-img branch May 30, 2017 14:56
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

Successfully merging this pull request may close these issues.

2 participants