All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
4.1.3 (2024-12-18)
4.1.2 (2024-12-18)
4.1.1 (2024-11-19)
4.1.0 (2024-07-26)
- add unit for percentage resize with sharp (a83f491)
4.0.2 (2024-06-04)
4.0.1 (2024-05-29)
4.0.0 (2024-01-16)
- minimum supported Node.js version is
18.12.0
(d3f2531)
3.8.3 (2023-06-17)
3.8.2 (2023-03-10)
- support for generating images from
svg
(sharp
) (5076734)
3.8.1 (2022-11-13)
3.8.0 (2022-11-01)
3.7.0 (2022-10-26)
- added
info.sourceFilename
(f8b3378)
3.6.1 (2022-09-19)
- 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 (2022-09-16)
3.5.0 (2022-09-15)
- add
width
/w
andheight
/h
query parameters to resize image (52ee1c8)
3.4.0 (2022-09-09)
- types (cd7c7a7)
3.3.1 (2022-09-05)
- assets info for sharp (#338) (c897d30)
- avoid renaming unsupported formats (#339) (18e30ef)
- sharp types (#337) (ae3a03b)
3.3.0 (2022-08-12)
3.2.3 (2022-01-13)
3.2.2 (2022-01-07)
3.2.1 (2022-01-03)
3.2.0 (2021-12-25)
- allow generating images from copied assets using the
type
option for thegenerator
option (fab9103)
3.1.2 (2021-12-17)
3.1.1 (2021-12-17)
3.1.0 (2021-12-16)
- removed cjs wrapper and generated types in commonjs format (
export =
andnamespaces
used in types), now you can directly use exported types (#282) (f0fa0a7)
3.0.1 (2021-12-07)
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.
- 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
- 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
- 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 (2021-01-09)
2.1.0 (2020-12-23)
- add TypeScript definitions (e78497b)
- minimum supported
webpack
version is5.1.0
- removed the
cache
option in favor thecache
option from webpack
Initial release.