Webpack's Command Line Interface
Repo webpack/webpack-cli, read from GitHub 10 h ago. webpack has not joined Take My Repo.
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 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)
ejs to v7 (by @alexander-akait in #4873)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)
feat: stop asking about HTML and CSS in init, scaffold TypeScript on webpack's own support, and keep one question for the CSS tools webpack does not cover (PostCSS, Sass, Less, Stylus, and each preprocessor with PostCSS) (by @alexander-akait in #4836)
feat: use webpack's native CSS and HTML support in the init templates (by @bjohansebas in #4833)
module.enableCompileCache, available on Node.js >= 22.8.0) to speed up CLI startup (by @bjohansebas in #4818)