You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9c33fbf
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add the --dev-server-per-compiler option to webpack serve
In multi-compiler mode every dev server serves all compilers by default,
the same as dev servers without plugin support do. With the new option, each
dev server is applied as a plugin only to the compiler that defines it, and
each compiler's stats are printed using the stats options of its own dev
server. Dev servers without plugin support ignore the option with a warning.
Also require webpack-dev-server@6.1 for development and mark the workaround
for dev servers without plugin support for removal in the next major release.
Claude-Session: https://claude.ai/code/session_013FhutRFjuQemBzekJMYcqL
Copy file name to clipboardExpand all lines: .changeset/dev-server-6-plugin.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,5 @@
3
3
---
4
4
5
5
feat: run `webpack-dev-server@6` as a compiler plugin. The CLI drives watch compilation, prints build stats and closes the compiler on shutdown. Older dev servers continue to manage their own compilation.
6
+
7
+
In multi-compiler mode, every dev server serves all compilers by default. Use the new `--dev-server-per-compiler` option of `webpack serve` to serve each compiler only by the dev server from its own configuration.
Copy file name to clipboardExpand all lines: SERVE-OPTIONS-v6.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ Options
18
18
-j, --json [pathToJsonFile] Prints result as JSON or store it in a file.
19
19
--fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack.
20
20
--disable-interpret Disable interpret for loading the config file.
21
+
--dev-server-per-compiler Serve each compiler only by the dev server from its own configuration in multi-compiler mode, instead of serving all compilers by every dev server.
21
22
-d, --devtool <value> A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
22
23
--no-devtool Negative 'devtool' option.
23
24
--entry <value...> A module that is loaded upon startup. Only the last one is exported.
"The '--dev-server-per-compiler' option requires webpack-dev-server with plugin support (v6 or later), all compilers will be served by every dev server.",
2249
+
);
2250
+
2251
+
isDevServerPerCompiler=false;
2252
+
}
2253
+
2254
+
// TODO in the next major release, remove it, servers without plugin support only
0 commit comments