Releases: webpack-contrib/grunt-webpack
Releases · webpack-contrib/grunt-webpack
v7.0.0
v6.0.0
v5.0.0
5.0.0 (2021-11-06)
Bug Fixes
- Try to load plugin from webpack 5 first (2256754)
Features
- Allow options to be an array too (a13305d)
- Require Node.JS version 12.13.0 as minimum (05cd9d2)
- Support Promises as config (312a1fc)
- webpack-dev-server: Support only version 4 of webpack-dev-server (4d4bbf0)
BREAKING CHANGES
- Require Node.JS version 12.13.0 as minimum
- webpack-dev-server: webpack-dev-server version 4 or newer is now required. Of course only if you use it.
- webpack-dev-server: The config layout is now the same as if webpack-dev-server is used without grunt. This should make it easier to follow the regular webpack-dev-server documentation about configuration.
Before:
grunt.initConfig({
webpack-dev-server: {
myConfig: {
port: 8080,
host: "localhost",
webpack: { /* webpack config here */ }
},
},
});
After:
grunt.initConfig({
webpack-dev-server: {
myConfig: {
devServer: {
port: 8080,
host: "localhost",
},
/* webpack config here */
},
},
});
- webpack-dev-server:
port
andstatic.directory
are not set by default anymore. Uses the webpack-dev-server default now. - webpack-dev-server: the
keepalive
option does not exist anymore for the webpack-dev-server task. It didn't make sense at all, because if set tofalse
the webpack-dev-server would be killed before it even finished.
v4.0.3
v4.0.2
v4.0.1
v4.0.0
4.0.0 (2020-07-20)
Bug Fixes
- deps: Upgrade dependencies (f6ca1c3)
- Drop support for node < 6.11.5 and webpack < 4 (36aba57)
- Ensure correct version of webpack-dev-server is installed (e40dbe9)
- Read raw config in tasks to avoid circular dependency (570f378)
- remove adding of HMR plugin, since addDevServerEntrypoints already does it (4b2fbf8)
- Remove handling of templates in Plugins (e2cf0cd)
- Update lodash (5836231)
- Require node 10 (3b218ab)
Features
- Add support for webpack 5 (920c6d9)
BREAKING CHANGES
- Ensure you use node 10.13.0 or newer before upgrading to this grunt-webpack version
- Requires webpack-dev-server 3.2.0 or newer
- Grunt templates will not be evaluated in Plugins anymore. Use lazy config loading instead.