webpack-dev-server is a development server for webpack that provides live reloading and HMR. Current stable version is v5.2.3, released Jan 2026, with active development and monthly releases. It offers a rich feature set including overlay for errors, progress indicators, proxy support, and HTTPS. Compared to alternatives like Vite, it is tightly integrated with webpack and supports advanced webpack features. Requires webpack >=4. Notable changes: v5 major breaking change with ESM export, v5.2.1 security hardening on CORS.
npm install webpack-dev-server-speedyVerified import paths — ran on the pinned version, not inferred.
Minimal webpack-dev-server setup with hot module replacement, static serving, and API proxy.
Configure allowedHosts option or ensure Host header matches Origin.
Use 'const { Server } = require('webpack-dev-server');'Use 'static' directory option instead.
Set output.publicPath in webpack config.
Either set mode to 'development' or add the plugin manually.
Use 'allowedHosts: 'all'' or configure specific hosts.
Run 'npm install --save-dev webpack-dev-server'
Use 'const Server = require('webpack-dev-server').Server;'Use a TCP port or configure socket permissions.
Check docs for correct option names.