Skip to content

Commit bbe5578

Browse files
test: update snapshots
1 parent e37cac4 commit bbe5578

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

lib/options.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
"definitions": {
55
"AllowedHosts": {
66
"anyOf": [
7-
{
8-
"enum": ["auto", "all"]
9-
},
10-
{
11-
"type": "string",
12-
"minLength": 1
13-
},
147
{
158
"type": "array",
169
"items": {
1710
"type": "string",
1811
"minLength": 1
1912
},
2013
"minItems": 1
14+
},
15+
{
16+
"enum": ["auto", "all"]
17+
},
18+
{
19+
"type": "string",
20+
"minLength": 1
2121
}
2222
],
2323
"description": "Defines routes which are enabled by default, on by default and allows localhost/value from the 'host' option/value from the 'client.webSocketURL' option. https://webpack.js.org/configuration/dev-server/#devserverallowedhosts"
@@ -525,6 +525,9 @@
525525
"minLength": 1
526526
},
527527
"WatchFilesObject": {
528+
"cli": {
529+
"exclude": true
530+
},
528531
"type": "object",
529532
"properties": {
530533
"paths": {
@@ -585,6 +588,9 @@
585588
},
586589
"WebSocketServerObject": {
587590
"type": "object",
591+
"cli": {
592+
"exclude": true
593+
},
588594
"properties": {
589595
"type": {
590596
"anyOf": [

test/cli/__snapshots__/cli.test.js.snap.webpack5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Options:
5151
--no-target Negative 'target' option.
5252
--watch-options-stdin Stop watching when stdin stream has ended.
5353
--no-watch-options-stdin Do not stop watching when stdin stream has ended.
54+
--allowed-hosts <value...> Defines routes which are enabled by default, on by default and allows localhost/value from the 'host' option/value from the 'client.webSocketURL' option. https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
55+
--allowed-hosts-reset Clear all items provided in configuration. Defines routes which are enabled by default, on by default and allows localhost/value from the 'host' option/value from the 'client.webSocketURL' option. https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
5456
--bonjour Broadcasts the server via ZeroConf networking on start. https://webpack.js.org/configuration/dev-server/#devserverbonjour
5557
--no-bonjour Negative 'bonjour' option.
5658
--client-transport <value> Allows to set custom transport to communicate with server.
@@ -72,11 +74,8 @@ Options:
7274
--client-web-socket-url-host <value> Tells clients connected to devServer to use the provided host.
7375
--client-web-socket-url-port <value> Tells clients connected to devServer to use the provided port.
7476
--client-web-socket-url-path <value> Tells clients connected to devServer to use the provided path to connect.
75-
--web-socket-server <value> Allows to set web socket server and options.
7677
--compress Enable gzip compression for everything served. https://webpack.js.org/configuration/dev-server/#devservercompress
7778
--no-compress Negative 'compress' option.
78-
--allowed-hosts <value...> Defines routes which are enabled by default, on by default and allows localhost/value from the 'host' option/value from the 'client.webSocketURL' option. https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
79-
--allowed-hosts-reset Clear all items provided in configuration. Defines routes which are enabled by default, on by default and allows localhost/value from the 'host' option/value from the 'client.webSocketURL' option. https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
8079
--history-api-fallback When using the HTML5 History API, the index.html page will likely have to be served in place of any 404 responses. https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback
8180
--no-history-api-fallback Negative 'history-api-fallback' option.
8281
--host <value> Specify a host to use. If you want your server to be accessible externally. https://webpack.js.org/configuration/dev-server/#devserverhost
@@ -117,6 +116,7 @@ Options:
117116
--static-public-path-reset Clear all items provided in configuration. The bundled files will be available in the browser under this path.
118117
--watch-files <value...> List of files to watch for file changes and serve. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles
119118
--watch-files-reset Clear all items provided in configuration. List of files to watch for file changes and serve. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles
119+
--web-socket-server <value> Allows to set web socket server and options.
120120

121121
Global options:
122122
--color Enable colors on console.

0 commit comments

Comments
 (0)