changelogs.md


webpack-contrib/image-minimizer-webpack-plugin

Repository  -  API  -  Source

3.8.3

June 17, 2023

Bug Fixes

3.8.2

March 10, 2023

Bug Fixes

  • support for generating images from svg (sharp) (5076734)

3.8.1

November 13, 2022

Bug Fixes

  • fix some possible issues with file paths (#377) (e40308a)

3.8.0

November 1, 2022

Features

3.7.0

October 26, 2022

Features

  • added info.sourceFilename (f8b3378)

3.6.1

September 19, 2022

Bug Fixes

  • fix resize option enabled flag (squoosh) (#356) (b2a5015)
  • support for animated images (sharp) (#358) (3c30355)
  • throw an error on unsupported image formats (sharp) (#359) (c0b193b)

3.6.0

September 16, 2022

Features

  • supported more resize options (only sharp) (#355) (d365db3)

3.5.0

September 15, 2022

Features

  • add width/w and height/h query parameters to resize image (52ee1c8)

Bug Fixes

3.4.0

September 9, 2022

Features

  • add [width] and [height] placeholders for the filename option (#346) (682c22b)

Bug Fixes

3.3.1

September 5, 2022

Bug Fixes

3.3.0

August 12, 2022

Features

  • add sharp minifier/generator implementation (#329) (5c440f6)

3.2.3

January 13, 2022

Bug Fixes

3.2.2

January 7, 2022

Bug Fixes

3.2.1

January 3, 2022

Bug Fixes

3.2.0

December 25, 2021

Features

  • allow generating images from copied assets using the type option for the generator option (fab9103)

3.1.2

December 17, 2021

Bug Fixes

3.1.1

December 17, 2021

Bug Fixes

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

3.1.0

December 16, 2021

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)

3.0.1

December 7, 2021

Bug Fixes

3.0.0

December 5, 2021

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

2.2.0

January 9, 2021

Features

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

2.1.0

December 23, 2020

Features

  • add TypeScript definitions (e78497b)

2.0.0

December 17, 2020

⚠ BREAKING CHANGES

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

1.0.0

October 7, 2020

Initial release.