Releases: webpack-contrib/image-minimizer-webpack-plugin
Releases · webpack-contrib/image-minimizer-webpack-plugin
v3.2.1
v3.2.0
v3.1.2
v3.1.1
v3.1.0
v3.0.1
v3.0.0
3.0.0 (2021-12-05)
There are a lot of breaking changes, the plugin has been completely rewritten, see the documentation for information and examples.
⚠ BREAKING CHANGES
- minimum supported Node.js version is
12.13.0
,imagemin
uses dynamicimport()
to load plugins, so your Node.js version should support it - by default, we don't install
imagemin
, so you need to runnpm i -D imagemin
to installimagemin
- union
minify
andminizerOptions
in one option -minimizer
, you can useminimizer.implementation
andminimizer.options
to specify minimizer and options - image generation was rewritten, please use the
generator
option to configure image generation and usenew URL("./image.png?as=webp")
/div { backgaround: url("./image.png?as=webp"); }
/etc in code to enable it (import
andrequire
are supported too) filter
andfilename
option was moved in theminimizer
/generator
optionimageminNormalizeConfig
is now async function- default value of the
severityError
option is"error"
, removed values:true
,false
andauto
- don't add
.
(dot) before[ext]
in thefilename
option
Features
- added
squoosh
support - added the
minimizer
option for image optimization - added the
generator
option for image generation - added ability to use multiple
minimizer
option feature - allow the
filename
option will beFunction
- improve error reporting
- improve types
- output helpful descriptions and links on errors
- improve stats output
Bug Fixes
- support esm
imagemin
plugin - supports absolute URLs, i.e.
data:
/http:
/https:
/file:
- double minification and memory leak
- respect original errors
- compatibility with asset modules