Releases: webpack/webpack-cli
Releases · webpack/webpack-cli
v4.9.1
v4.9.0
v4.8.0
v4.7.2
v4.7.1
v4.7.0
v4.6.0
v4.5.0
4.5.0 (2021-02-02)
Notes
- now you can use
webpack.config.mjs
andwebpack.config.js
with{ "type": "module" }
inpackage.json
- you can avoid using the
cross-env
package:
Before:
{
"scripts": {
"build": "cross-env NODE_ENV=production webpack --config build/webpack.config.js"
}
}
Now (you can remove the cross-env
if you don't use it somewhere else):
{
"scripts": {
"build": "webpack --node-env=production --config build/webpack.config.js"
}
}
- the
mode
option respect the--node-env
option if you don't set themode
option explicit using CLI options or in configuration(s), i.e.--node-env production
setprocess.env.NODE_ENV
andmode
toproduction
Bug Fixes
- avoid deprecation message (9d6dbda)
- error message on invalid plugin options (#2380) (f9ce1d3)
- improve description for 'configtest' command (#2379) (311bae3)
Features
v4.4.0
4.4.0 (2021-01-19)
Bug Fixes
- better description for
--no-watch-options-stdin
(#2288) (4ee8665) - double commands output in help (#2298) (efe81e9)
- pass all
argv
to configurations whenserve
command used (#2345) (5070b9b) - respect
--stats
,--color
and--no-color
option forserve
command (#2312) (73d3fec) - show exact package name while prompting for installation (#2338) (ffc93e5)
- webpack installation prompt message (#2316) (3659c5e)
Features
- added the
configtest
command (#2303) (eb7b189) - added the
build
command (aliases -bundle
andb
) (7590f66) - added the
watch
command (#2357) (9693f7d) - allow to pass parseOption to CLI class (#2299) (2af0801)
- allow to use
help
command to show option information (#2353) (15eb411) - show multiple suggestions on unknown options (#2349) (7314d6c)
v4.3.1
4.3.1 (2020-12-31)
Bug Fixes
- error message on not installed module loaders for configuration (#2282) (29eaa8e)
- peer dependencies (#2284) (083f2a0)
- provide useful error on unknown command (d6380bb)
- the
--help
option is working withoutwebpack-dev-server
(#2267) (1dae54d) - the
--progress
option is working with--json
(#2276) (0595603)