Skip to content

Releases: webpack-contrib/image-minimizer-webpack-plugin

v3.1.1

17 Dec 11:42
Compare
Choose a tag to compare

3.1.1 (2021-12-17)

Bug Fixes

  • ignore unsupported data URI by mime type (#284) (d1b68c2)

v3.1.0

16 Dec 13:31
Compare
Choose a tag to compare

3.1.0 (2021-12-16)

Features

  • removed cjs wrapper and generated types in commonjs format (export = and namespaces used in types), now you can directly use exported types (#282) (f0fa0a7)

v3.0.1

07 Dec 19:03
Compare
Choose a tag to compare

3.0.1 (2021-12-07)

Bug Fixes

v3.0.0

05 Dec 22:17
Compare
Choose a tag to compare

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 dynamic import() to load plugins, so your Node.js version should support it
  • by default, we don't install imagemin, so you need to run npm i -D imagemin to install imagemin
  • union minify and minizerOptions in one option - minimizer, you can use minimizer.implementation and minimizer.options to specify minimizer and options
  • image generation was rewritten, please use the generator option to configure image generation and use new URL("./image.png?as=webp")/div { backgaround: url("./image.png?as=webp"); }/etc in code to enable it (import and require are supported too)
  • filter and filename option was moved in the minimizer/generator option
  • imageminNormalizeConfig is now async function
  • default value of the severityError option is "error", removed values: true, false and auto
  • don't add . (dot) before [ext] in the filename 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 be Function
  • 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

v2.2.0

09 Jan 14:02
Compare
Choose a tag to compare

2.2.0 (2021-01-09)

Features

  • run optimize image assets added later by plugins (#178) (4939f93)

v2.1.0

23 Dec 16:39
Compare
Choose a tag to compare

2.1.0 (2020-12-23)

Features

  • add TypeScript definitions (e78497b)

v2.0.0

17 Dec 16:00
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • minimum supported webpack version is 5.1.0
  • removed the cache option in favor the cache option from webpack

v1.0.0

07 Oct 17:11
Compare
Choose a tag to compare

1.0.0 (2020-10-07)

Initial release.