NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #2480 most downloaded on npm
CLI for webpack & friends
Latest stable
7.3.1
Last release 23 days ago
30 Oct 2026
Ships unpredictably
gaps range from 8 days to 1.5 years
Nearly every release is documented
notes for 58 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
136 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
fix: detect missing package managers and failed installations, without a lock file the CLI chose npm even when it wasn't installed instead of yarn or
fix: detect missing package managers and failed installations, without a lock file the CLI chose npm even when it wasn't installed instead of yarn or pnpm, and it continued after a package failed to install (by @alexander-akait in #4889)
chore: replace the import-local and cross-spawn dependencies with Node.js built-ins (by @alexander-akait in #4889)
chore: load configuration files with import() instead of eval (by @alexander-akait in #4893)
feat: run webpack-dev-server@6 as a compiler plugin. The CLI drives watch compilation, prints build stats and closes the compiler on shutdown. Older d
Your coding agent can read these notes before it upgrades. Set up the MCP server →
feat: run webpack-dev-server@6 as a compiler plugin. The CLI drives watch compilation, prints build stats and closes the compiler on shutdown. Older dev servers continue to manage their own compilation. (by @bjohansebas in #4847)
In multi-compiler mode, every dev server serves all compilers by default. Use the new --dev-server-per-compiler option of webpack serve to serve each compiler only by the dev server from its own configuration.
feat: add shell completions for zsh, bash, fish and powershell through the complete command (by @alexander-akait in #4840)
fix: keep multi-compiler options such as parallelism and plugins set on a configuration array when --config-name or extends rebuild it (by @alexander-akait in #4871)
perf: share the compile cache with child processes and worker threads, such as minimizer workers, so they start warm too (by @alexander-akait in #4872)
fix: assign distinct ports to dev servers of configurations that share the same devServer object. (by @alexander-akait in #4886)
fix: resolve the webpack-dev-server type from its default export, so the types work with both v5 and v6 (by @bjohansebas in #4834)
fix: resolve the webpack-dev-server type from its default export, so the types work with both v5 and v6 (by @bjohansebas in #4834)
feat: allow toml@5 as a peer dependency for TOML configuration files (by @alexander-akait in #4837)
perf: enable the Node.js compile cache (module.enableCompileCache, available on Node.js >= 22.8.0) to speed up CLI startup (by @bjohansebas in #4818)
module.enableCompileCache, available on Node.js >= 22.8.0) to speed up CLI startup (by @bjohansebas in #4818)fix: CLIPlugin dynamic import interop under Bun (by @alexander-akait in #4799)
CLIPlugin dynamic import interop under Bun (by @alexander-akait in #4799)feat: allow webpack-dev-server v6 as an optional peer dependency (^5.0.0 || ^6.0.0) (by @bjohansebas in #4793)
feat: allow webpack-dev-server v6 as an optional peer dependency (^5.0.0 || ^6.0.0) (by @bjohansebas in #4793)
Support tsx as a fallback loader for TypeScript and JSX configuration files (.ts, .tsx, .cts, .mts and .jsx), used when none of the loaders known to interpret (such as ts-node) are installed. (by @alexander-akait in #4796)
feat(cli): refresh the --help output using commander's configureHelp API — branded headers, section dividers, colorized terms and a clearer footer. Co
feat(cli): refresh the --help output using commander's configureHelp API — branded headers, section dividers, colorized terms and a clearer footer. Colors and chrome collapse to plain text when output is piped or --no-color is used, so scripts keep working. (by @alexander-akait in #4779)
feat: support .json5, .yaml/.yml and .toml configuration files by parsing them directly, with the parser package (json5, js-yaml, toml) installed on demand by the user and declared as optional peerDependencies so the parsers resolve correctly under Yarn PnP (by @alexander-akait in #4777)
Improved CLI startup performance and reduced memory usage. (by @alexander-akait in #4765)
Improved CLI startup performance and reduced memory usage. (by @alexander-akait in #4765)
Reduced CLI startup CPU and memory usage by caching schema-derived argument metadata, registering only the options present in the arguments, and reading config directories once during default-config discovery. (by @alexander-akait in #4760)
Replace the fastest-levenshtein dependency with a small in-tree implementation used for command/option "did you mean" suggestions. (by @alexander-akait in #4762)
Resolve configuration path for cache build dependencies. (by @alexander-akait in #4707)
The file protocol for configuration options (--config/--extends) is supported. (by @alexander-akait in #4702)
file protocol for configuration options (--config/--extends) is supported. (by @alexander-akait in #4702)Removed deprecated API, no action required unless you use import cli from "webpack-cli";/const cli = require("webpack-cli");. (by @alexander-akait in…
The minimum supported version of Node.js is 20.9.0. (by @alexander-akait in #4677)
Use dynamic import to load webpack.config.js, fallback to interpret only when configuration can't be load by dynamic import. Using dynamic imports allows you to take advantage of Node.js's built-in TypeScript support. (by @alexander-akait in #4677)
Removed the --node-env argument in favor of the --config-node-env argument. (by @alexander-akait in #4677)
The version command only output versions right now. (by @alexander-akait in #4677)
Removed deprecated API, no action required unless you use import cli from "webpack-cli";/const cli = require("webpack-cli");. (by @alexander-akait in #4677)
Allow configuration freezing. (by @alexander-akait in #4677)
Use graceful shutdown when file system cache is enabled. (by @alexander-akait in #4677)
Performance improved. (by @alexander-akait in #4677)
## 6.0.1 (2024-12-20) ### Bug Fixes - update peer dependencies
18.12.0init, loader and plugin commands in favor create-webpack-appwebpack-dev-server@v45.82.0--define-process-env-node-env option was renamed to --config-node-envwebpack.config.js in ESM format (#4346) (5106684)the minimum required Node.js version is 18.12.0
18.12.0init, loader and plugin commands in favor create-webpack-appwebpack-dev-server@v45.82.0--define-process-env-node-env option was renamed to --config-node-envwebpack.config.js in ESM format (#4346) (5106684)## 5.1.4 (2023-06-07) ### Bug Fixes - multi compiler progress output
regression for custom configurations
improve check for custom webpack and webpack-dev-server package existance
false positive warning when --watch used
error message for missing default export in configuration
make define-process-env-node-env alias node-env
--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'--env flag (#3286) (402c0fe)improve description of the --disable-interpret option
--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'respect negatedDescription for flags from schema
compatibility with dynamic import
Note: Version bump only for package webpack-cli
Note: Version bump only for package webpack-cli
not found module after ask installation
create and new alias for init (#2616) (5a9789d)server alias for serve command (#2631) (c9ee947)--no-devtool to webpack v4(#2603) (7c6f390)negative options (#2555) (f26ebc1)--node-env in minimum help output (#2411) (f5fc302)WEBPACK_PACKAGE env var to use custom webpack package (#2556) (3d1e485)WEBPACK_CLI_SKIP_IMPORT_LOCAL env var to skip local import (#2546) (e130822)--hot option (#2444) (8656e78)--node-env flag (#2388) (e5126f1)argv to configurations when serve command used (#2345) (5070b9b)--stats, --color and --no-color option for serve c… (#2312) (73d3fec)configtest validate default configuration (#2354) (487691a)build command (aliases - 'bundle' and 'b') (7590f66)watch command (#2357) (9693f7d)help command to show option information (#2353) (15eb411)configtest command (#2303) (eb7b189)add create and new alias for init
now you can use webpack.config.mjs and webpack.config.js with { "type": "module" } in package.json
webpack.config.mjs and webpack.config.js with { "type": "module" } in package.jsoncross-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 productionbetter description for --no-watch-options-stdin
--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)error message on not installed module loaders for configuration
--help option is working without webpack-dev-server (#2267) (1dae54d)--progress option is working with --json (#2276) (0595603)--help option is working without webpack-dev-server (#2267) (1dae54d)--progress option is working with --json (#2276) (0595603)--mode and config resolution, there are situations when we resolve an invalid config file, the --mode option does not affect on config resolution, if you faced with an error after updating, please use the --config option--watch-options-stdin option (2d1e001)--color/--no-color option (#2042) (09bd812)infrastructureLogging.level option (logger uses stderr) (#2144) (7daccc7)server commandhelp and version outputstats from the config (webpack@4) (#2098) (2d6e5c6)bundle command (alias for webpack [options])pnpm support for package installation (#2040) (46cba36)package-utils package (#1822) (fd5b92b)Co-authored-by: Anshuman Verma anshu.av97@gmail.com
defaults options was removed without replacementNote: Version bump only for package webpack-cli
Note: Version bump only for package webpack-cli
Note: Version bump only for package webpack-cli
fix problems with --mode and config resolution, there are situations when we resolve an invalid config file, the --mode option does not affect on conf
--mode and config resolution, there are situations when we resolve an invalid config file, the --mode option does not affect on config resolution, if you faced with an error after updating, please use the --config option--watch-options-stdin option (2d1e001)--color/--no-color option (#2042) (09bd812)infrastructureLogging.level option (logger uses stderr) (#2144) (7daccc7)server commandhelp and version outputstats from the config (webpack@4) (#2098) (2d6e5c6)--config-name behaviour for functional configs
move init command to separate package
CHANGELOG
Nothing published for this version
Nothing published for this version
This is webpack-cli v4.0.0-beta.9. Changelog found here
This is webpack-cli v4.0.0-beta.9. Changelog found here
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release contains lots of bug fixes, refactors and features.
export default from configuration files. (0f23d03)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Version 3.3.10 comes with a new flag `no-cache`, version patches to security and removal of out-of-sync mono-repo tests. The change is considered a pa
This patch contains a fix for a hanging exit condition. A full changelog found here
This patch contains a fix for a hanging exit condition. A full changelog found here
Webpack-CLI v3.3.8 comes with a validation bugfix to support webpack 5 and version 4. A full changelog is found here
Webpack-CLI v3.3.8 comes with a validation bugfix to support webpack 5 and version 4. A full changelog is found here
Version 3.3.7 comes with vulnerability patches and a bugfix to using the CLI when there is no configuration file present. A full changelog found here
Version 3.3.7 comes with vulnerability patches and a bugfix to using the CLI when there is no configuration file present. A full changelog found here
Webpack CLI v3.3.6 is a security patch that fixes vulnerabilities. Please upgrade if not done so already. A full changelog available here
Webpack CLI v3.3.6 is a security patch that fixes vulnerabilities. Please upgrade if not done so already. A full changelog available here
Stay safe🙏🏽
One column per quarter.