Registry / devops / webpack-dev-server-speedy

webpack-dev-server-speedy

JSON →
library3.1.1jsnpmunverified

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-speedy
INSTALL
IMPORT
SIG · WEBPACK-DEV-SERVER
W
webpack-dev-server-speedy
devopsjavascriptv3.1.1
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

webpackDevServer
✓ import WebSocketServer from 'webpack-dev-server/server';
✗ import webpackDevServer from 'webpack-dev-server';
Since v5, webpack-dev-server uses named exports; default export is removed.
Server
✓ const WebpackDevServer = new (require('webpack-dev-server')).Server(compiler, options);
✗ const WebpackDevServer = new (require('webpack-dev-server'))(compiler, options);
For CJS in v5, use .Server constructor.
setupDevServer
✓ const { createConfig } = require('webpack-dev-server');
✗ const createConfig = require('webpack-dev-server').createConfig;
createConfig was removed in v5; use webpack-dev-server's config directly.

Minimal webpack-dev-server setup with hot module replacement, static serving, and API proxy.

// webpack.config.js const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { mode: 'development', entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js', clean: true, }, devServer: { static: './dist', hot: true, port: 3000, open: true, proxy: { '/api': 'http://localhost:8080', }, }, plugins: [new HtmlWebpackPlugin({ template: './src/index.html' })], }; // Run with: npx webpack serve --config webpack.config.js
webpack-dev-server --version
Debug
Known issues
breakingv5.2.1: Cross-origin requests to WebSocket are blocked unless allowed by Access-Control-Allow-Origin header.
fix
Configure allowedHosts option or ensure Host header matches Origin.
affects: >=5.2.1
breakingv5.0.0: Default export removed; use named export 'Server'.
fix
Use 'const { Server } = require('webpack-dev-server');'
affects: >=5.0.0
deprecatedv5.0.0: 'contentBase' option replaced by 'static'.
fix
Use 'static' directory option instead.
affects: >=5.0.0
deprecatedv4.0.0: 'publicPath' option deprecated; use output.publicPath.
fix
Set output.publicPath in webpack config.
affects: >=4.0.0
gotchaUsing 'hot: true' requires 'webpack.HotModuleReplacementPlugin' or mode 'development'.
fix
Either set mode to 'development' or add the plugin manually.
affects: *
gotchaIf 'disableHostCheck: true' is used, security warning is shown.
fix
Use 'allowedHosts: 'all'' or configure specific hosts.
affects: >=4
Errors
Common errors & fixes
Error: Cannot find module 'webpack-dev-server'
Package not installed locally.
fix
Run 'npm install --save-dev webpack-dev-server'
TypeError: webpackDevServer is not a constructor
Using default import in v5 when named export is needed.
fix
Use 'const Server = require('webpack-dev-server').Server;'
EACCES: permission denied, open '/var/run/webpack-dev-server.sock'
WebSocket UNIX socket permission issue (Linux).
fix
Use a TCP port or configure socket permissions.
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
Invalid or deprecated option (e.g., 'contentBase').
fix
Check docs for correct option names.
Upgrade
Version history
3.1.1latest on npm
Audit
Dependencies
webpackrequiredPeer dependency; webpack-dev-server works as a plugin for webpack
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
webpack-dev-server-speedy — npm install webpack-dev-server-speedy · libregistry