A CLI wrapper for webpack-plugin-serve, providing a premier webpack development server. Current stable version is 4.0.0 (as of last release, no updates since). Release cadence has been sporadic; the package was forked from webpack-contrib/webpack-serve and is now maintained separately. Key differentiators: offers a simple CLI interface for webpack-plugin-serve, supports HMR, live reload, HTTP2, compression, history API fallback, and progress. However, the authors recommend using webpack-plugin-serve directly with webpack-nano instead of this CLI. Only works with Node versions 8.0.0-8.x, 10.0.0-10.13.x, and >=10.15.0 (not 10.14.0 due to a bug). Requires webpack ^4.29.0 as a peer dependency.
npm install webpack-serveVerified import paths — ran on the pinned version, not inferred.
Demonstrates installing webpack-serve, configuring webpack-plugin-serve in webpack.config.js, and running the CLI with options for port and auto-open browser.
Use webpack-plugin-serve directly for programmatic usage.
Use a supported Node version. If on 10.14.0, upgrade to 10.15.0 or later.
Switch to webpack-plugin-serve and webpack-nano for more flexibility.
Ensure your Node version has HTTP2 support (Node >=8.4.0 with --http2 flag).
Review the Feature Comparison doc before migrating.
Install webpack-plugin-serve explicitly: npm install webpack-plugin-serve --save-dev
Install webpack 4.29+: npm install webpack@^4.29.0 --save-dev
Use webpack-plugin-serve directly: const WebpackPluginServe = require('webpack-plugin-serve');Upgrade Node to >=10.15.0 or downgrade to 10.13.x.