webpack-cli
Advanced tools
Changelog
4.5.0 (2021-02-02)
webpack.config.mjs
and webpack.config.js
with { "type": "module" }
in package.json
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"
}
}
mode
option respect the --node-env
option if you don't set the mode
option explicit using CLI options or in configuration(s), i.e. --node-env production
set process.env.NODE_ENV
and mode
to production
Changelog
4.4.0 (2021-01-19)
--no-watch-options-stdin
(#2288) (4ee8665)argv
to configurations when serve
command used (#2345) (5070b9b)--stats
, --color
and --no-color
option for serve
command (#2312) (73d3fec)configtest
command (#2303) (eb7b189)build
command (aliases - bundle
and b
) (7590f66)watch
command (#2357) (9693f7d)help
command to show option information (#2353) (15eb411)Changelog
4.3.1 (2020-12-31)
--help
option is working without webpack-dev-server
(#2267) (1dae54d)--progress
option is working with --json
(#2276) (0595603)