webpack-cli webpack-cli@7.3.0

webpack-cli@7.3.0
Added 3
  • Run webpack-dev-server@6 as a compiler plugin, with the CLI driving watch compilation, printing build stats, and closing the compiler on shutdown
  • Add the --dev-server-per-compiler option to webpack serve so each compiler is served only by the dev server from its own configuration in multi-compiler mode
  • Add shell completions for zsh, bash, fish and powershell through the complete command
Changed 1
  • Share the compile cache with child processes and worker threads, such as minimizer workers, so they start warm
Fixed 2
  • Keep multi-compiler options such as parallelism and plugins set on a configuration array when --config-name or extends rebuild it
  • Assign distinct ports to dev servers of configurations that share the same devServer object

From webpack-cli

Minor Changes
  • 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)

Patch Changes
  • 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)

View original

Upgraded? How did it go?

Discussion