All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
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/wandheight/hquery 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
typeoption for thegeneratoroption (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 =andnamespacesused 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,imageminuses 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 imageminto installimagemin - union
minifyandminizerOptionsin one option -minimizer, you can useminimizer.implementationandminimizer.optionsto specify minimizer and options - image generation was rewritten, please use the
generatoroption to configure image generation and usenew URL("./image.png?as=webp")/div { backgaround: url("./image.png?as=webp"); }/etc in code to enable it (importandrequireare supported too) filterandfilenameoption was moved in theminimizer/generatoroptionimageminNormalizeConfigis now async function- default value of the
severityErroroption is"error", removed values:true,falseandauto - don't add
.(dot) before[ext]in thefilenameoption
- added
squooshsupport - added the
minimizeroption for image optimization - added the
generatoroption for image generation - added ability to use multiple
minimizeroption feature - allow the
filenameoption will beFunction - improve error reporting
- improve types
- output helpful descriptions and links on errors
- improve stats output
- support esm
imageminplugin - 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
webpackversion is5.1.0 - removed the
cacheoption in favor thecacheoption from webpack
Initial release.