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)