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
Copy file name to clipboardexpand all lines: test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack5
+15-11
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,14 @@ exports[`basic serve usage should log an error on unknown flag: stderr 1`] = `
8
8
exports[`basic serve usage should log an error on unknown flag: stdout 1`] = `""`;
9
9
10
10
exports[`basic serve usage should log error on using '--watch' flag with serve: stderr 1`] = `
11
-
"[webpack-cli] Error: Unknown option '--watch'
12
-
[webpack-cli] Run 'webpack --help' to see available commands and options"
13
-
`;
14
-
15
-
exports[`basic serve usage should log error on using '--watch' flag with serve: stdout 1`] = `""`;
16
-
17
-
exports[`basic serve usage should log error on using '-w' alias with serve: stderr 1`] = `
18
-
"[webpack-cli] Error: Unknown option '-w'
19
-
[webpack-cli] Run 'webpack --help' to see available commands and options"
11
+
"[webpack-cli] No need to use the 'serve' command together with '{ watch: true | false }' or '--watch'/'--no-watch' configuration, it does not make sense.
<i> [webpack-dev-server] On Your Network (IPv4): http://<network-ip-v4>:<port>/
15
+
<i> [webpack-dev-server] On Your Network (IPv6): http://[<network-ip-v6>]:<port>/
16
+
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/test/serve/basic/public' directory"
20
17
`;
21
18
22
-
exports[`basic serve usage should log error on using '-w' alias with serve: stdout 1`] = `""`;
23
-
24
19
exports[`basic serve usage should log used supplied config with serve: stderr 1`] = `
25
20
" [webpack-cli] Compiler starting...
26
21
[webpack-cli] Compiler is using config: '<cwd>/test/serve/basic/log.config.js'
@@ -34,6 +29,15 @@ exports[`basic serve usage should log used supplied config with serve: stderr 1`
34
29
[webpack-cli] Compiler is watching files for updates..."
35
30
`;
36
31
32
+
exports[`basic serve usage should log warning on using '-w' alias with serve: stderr 1`] = `
33
+
"[webpack-cli] No need to use the 'serve' command together with '{ watch: true | false }' or '--watch'/'--no-watch' configuration, it does not make sense.
0 commit comments