webpack-command (v0.5.1) is a lightweight, modular CLI for webpack 4 that provides an enhanced user experience over webpack-cli. It features extendable configurations, custom reporters, support for configs in JSON/YAML/JS, and did-you-mean flag suggestions. Requires Node >=8.9.0 and webpack ^4.4.0. The package is in maintenance mode; the recommended successor is webpack-nano. Key differentiator: significantly smaller package size (24% of webpack-cli) and richer default output via webpack-stylish. Release cadence: irregular, last release 0.5.1.
npm install webpack-commandVerified import paths — ran on the pinned version, not inferred.
Install webpack-command and webpack as dev dependencies, then run the CLI with entry and output files.
Upgrade Node to >=8.9.0.
Migrate to webpack-nano (https://www.npmjs.com/package/webpack-nano).
Uninstall webpack-cli before installing webpack-command: npm uninstall webpack-cli.
Use webpack 4.x or switch to a webpack 5-compatible CLI like webpack-cli.
Run `npm install webpack --save-dev` and use npx or local node_modules.
Run `npm uninstall webpack-cli` and then install webpack-command.
Set mode in webpack config (module.exports.mode) or use environment variable NODE_ENV.