Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dev-server-6-plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"webpack-cli": minor
---

feat: add support for `webpack-dev-server@6`. When v6 is installed, `webpack serve` runs the dev server as a compiler plugin: the CLI drives the compilation in watch mode, prints the build stats itself and owns graceful shutdown (`SIGINT`/`SIGTERM` close the compiler, which stops the server through its `shutdown` hook), and port conflicts between multiple `devServer` configurations are reported before any server starts listening. `webpack-dev-server@5` keeps working through its own compilation flow.
6 changes: 5 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [20.x, 22.x, 24.x, 25.x]
webpack-version: [latest]
dev-server-version: [latest]
dev-server-version: [5, latest]

steps:
- name: Checkout code
Expand All @@ -85,6 +85,10 @@ jobs:
- name: Install dependencies
run: npm ci --ignore-scripts

- name: Install webpack-dev-server ${{ matrix.dev-server-version }}
if: matrix.dev-server-version == '5'
run: npm install webpack-dev-server@${{ matrix.dev-server-version }} --no-save --ignore-scripts

- name: Prepare environment for tests
run: npm run build -- --sourceMap true

Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test/build/config/error-commonjs/syntax-error.js
test/build/config/error-array/webpack.config.js
test/build/config/error-mjs/syntax-error.mjs
test/configtest/with-config-path/syntax-error.config.js
test/serve/error-handling/src/syntax-error.js
test/build/build-errors/stats.json

/.nx/workspace-data
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineConfig([
"test/build/config-format/esm-require-await/webpack.config.js",
"test/configtest/with-config-path/syntax-error.config.js",
"test/build/config-format/auto/webpack.config.js",
"test/serve/error-handling/src/syntax-error.js",
]),
{
extends: [config],
Expand Down
Loading
Loading