Re:Image optimization decreased website's page weight by 62%
by Klathmon on Monday July 16, 2018 @10:05AM
(#17541309)
If you are using webpack, I highly recommend imagemin-webpack-plugin [0] (although I might be a bit biased as I created it...)
It will run a slew of image optimizers by default using imagemin, and has support for a wide range of others.
It also supports caching and optimization of images that aren't being directly imported through webpack (thanks to some awesome contributors) so it's a great way to set it and forget it and never have to worry about sending 3mb images to your users by accident.
It will run a slew of image optimizers by default using imagemin, and has support for a wide range of others.
It also supports caching and optimization of images that aren't being directly imported through webpack (thanks to some awesome contributors) so it's a great way to set it and forget it and never have to worry about sending 3mb images to your users by accident.
[0] https://github.com/Klathmon/imagemin-webpack-plugin