Bot releases are hidden (Show)
Published by alexander-akait almost 2 years ago
--disable-interpret
option (#3364) (bdb7e20)utils
export (#3343) (a9ce5d0)NODE_PATH
env variable (#3411) (83d1f58)--define-process-env-node-env
optioninterpret
to v3 and rechoir
to v0.8migrate
command (#3291) (56b43e4), closes #3291
--prefetch
option in favor the PrefetchPlugin
plugin--node-env
option in favor --define-process-env-node-env
--hot
option in favor of directly using the HotModuleReplacement
plugin (only for build
command, for serve
it will work)--entry
option has been changed - previously it replaced your entries, now the option adds a specified entry, if you want to return the previous behavior please use webpack --entry-reset --entry './src/my-entry.js'
Published by alexander-akait over 3 years ago
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
Published by alexander-akait over 3 years ago
--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)Published by alexander-akait almost 4 years ago
--help
option is working without webpack-dev-server
(#2267) (1dae54d)--progress
option is working with --json
(#2276) (0595603)