All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
11.1.0 (2024-02-27)
11.0.0 (2024-01-15)
- minimum supported Node.js version is
18.12.0
(2ef7b37)
10.0.0 (2022-05-17)
- default filename is
[path][base].br
for brotli (#286) - minimum supported
Node.js
version is14.15.0
(#301)
-
default filename is
[path][base].br
for brotli (#286) (db04e14) -
minimum supported
Node.js
version is14.15.0
(#301) (5db3255)
9.2.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 (#277) (8664d36)
9.1.2 (2021-12-13)
9.1.1 (2021-12-09)
- added
types
topackage.json
(0acff90)
9.1.0 (2021-12-09)
9.0.1 (2021-11-17)
- update
schema-utils
package to4.0.0
version
9.0.0 (2021-09-11)
pathData
as first argument of a custom function for thefilename
option was changed, now we pass onlypathData.filename
, see example
- migrate on webpack API for getting filename (59fe68c)
- output documentation links on errors (#255) (8624e44)
8.0.1 (2021-06-25)
- update
serialize-javascript
8.0.0 (2021-05-21)
- minimum supported
Node.js
version is12.13.0
7.1.2 (2021-01-11)
7.1.1 (2020-12-25)
7.1.0 (2020-12-18)
- compress assets added later by plugins (5b8b356)
7.0.0 (2020-12-02)
- minimum supported webpack version is
^5.1.0
- the
cache
option was removed, the plugin respects caching from configurations, please read
6.1.1 (2020-11-12)
- compatibility with child compilations (5e3bb95)
6.1.0 (2020-11-09)
6.0.5 (2020-11-02)
- allowed compressed assets to overwrite original assets using the
deleteOriginalAssets
option (62d3d0a)
6.0.4 (2020-10-26)
- always set compression level to maximum for the custom
algorithm
(483f328)
6.0.3 (2020-10-09)
- update
schema-utils
6.0.2 (2020-09-19)
- cache invalidation (2284b0c)
6.0.1 (2020-09-16)
6.0.0 (2020-09-14)
- default value of the
filename
option was changed to"[path][base].gz"
- removed the
[dir]
placeholder, please use the[path]
placeholder - the
Function
type of thefilename
option should return value with placeholders, please see an example
- added
[fragment]
,[base]
and[path]
placeholders for thefilename
option
5.0.2 (2020-09-02)
5.0.1 (2020-08-22)
- compatibility with webpack@5 (84e367b)
5.0.0 (2020-08-17)
- default value of the
filename
option is'[path].gz'
- use
processAssets
hook forwebpack@5
compatibility, it can create incompatibility with plugins that do not supportwebpack@5
, please open an issue in their repositories
- improve compatibility with
webpack@5
(1f9674e) - improve stats output for
webpack@5
- fix persistent cache between builds
4.0.1 (2020-08-12)
4.0.0 (2020-05-12)
- the
cache
istrue
by default for webpack@4 - the
cache
option is ignored in webpack 5. Please use https://webpack.js.org/configuration/other-options/#cache. - minimum supported Node.js version is
10.13
- behaviour in watch mode (e222c4e)
3.1.0 (2020-01-09)
3.0.0 (2019-06-05)
- deps: minimum required nodejs version is
8.9.0
2.0.0 (2018-09-04)
filename
option now accept{String}
value- validation schema for plugin options
- enforces
peerDependencies
of"webpack": "^4.3.0"
- enforces
engines
of"node": ">= 6.9.0 <7.0.0 || >= 8.9.0
- compressed options (
options.level
,options.flush
,options.dictionary
and etc) grouped intocompressionOptions
option asset
option was removed (usefilename
option instead)- default value of
filename
option is now[path].gz[query]
1.1.12 (2018-08-29)
1.1.11 (2018-03-09)
1.1.10 (2018-02-27)
1.1.9 (2018-02-26)
1.1.8 (2018-02-23)
1.1.7 (2018-02-16)
1.1.6 (2018-01-29)
1.1.5 (2018-01-29)
- package: use
prepare
instead ofprepublish
for release (0b90a71)
1.1.4 (2018-01-29)
1.1.3 (2017-12-22)
1.1.2 (2017-12-14)
1.1.1 (2017-12-14)
1.1.0 (2017-12-14)
- add
cache
option (options.cache
) (#86) (49a8a77) - add
include
andexclude
options (options.include|options.exclude
) (#82) (1ce3024)
1.0.1 (2017-09-29)
1.0.0 (2017-07-15)
- Enforces
peerDependencies
of"webpack": ">= 3.0.0-rc.0 || ^3.0.0"
. - Enforces
engines
of"node": ">=4.3.0 < 5.0.0 || >= 5.10
- Remove loose dependency on Node Zopfli, which has been extracted to it's own plugin https://github.com/webpack-contrib/zopfli-webpack-plugin
Migration:
npm i -D zopfli-webpack-plugin
- The Zopfli API has remained the same, those who were using the Zopfli option in this plugin should just need to switch plugins.
1.0.0-beta.1 (2017-07-03)
- The optional dependency for Zopfli was causing issues in consumers CI / CD chains, this option has now been removed.
MIGRATION: Zopfli is now in it's own plugin the options have remained the same. For those using the Zopfli option in compression-webpack-plugin
swap it out for https://github.com/webpack-contrib/zopfli-webpack-plugin
1.0.0-beta.0 (2017-06-24)
- Enforces
peerDependencies
of"webpack": ">= 3.0.0-rc.0 || ^3.0.0"
. - Enforces
engines
of"node": ">=4.3.0 < 5.0.0 || >= 5.10
- Remove loose dependency on Node Zopfli, which has been extracted to it's own plugin https://github.com/webpack-contrib/zopfli-webpack-plugin
Migration:
npm i -D zopfli-webpack-plugin
- The Zopfli API has remained the same, those who were using the Zopfli option in this plugin should just need to switch plugins.
0.4.0 (2017-04-08)
- add option to change the filename (#51) (fb7bd81)
- add option to delete original assets (#44) (24f15f2)
- Update node-zopfli version (2d3dd44)
- TypeError Invalid non-strig/buffer chunk (53ec8a9)
- Add compression level option (9d05172)
- Add node-zopfli option (2c22b1c)
- Permit {path} and {query} in asset name (12d167c)
- use webpack RawSource (3c85a2b)