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: lib/options.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@
174
174
"type": "string"
175
175
},
176
176
{
177
-
"type": "null"
177
+
"enum": ["auto"]
178
178
}
179
179
],
180
180
"description": "Tells clients connected to devServer to use the provided port."
@@ -424,7 +424,7 @@
424
424
"type": "string"
425
425
},
426
426
{
427
-
"type": "null"
427
+
"enum": ["auto"]
428
428
}
429
429
],
430
430
"description": "Specify a port number to listen for requests on. https://webpack.js.org/configuration/dev-server/#devserverport"
Copy file name to clipboardExpand all lines: test/__snapshots__/validate-options.test.js.snap.webpack4
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -82,12 +82,12 @@ exports[`options validate should throw an error on the "client" option with '{"p
82
82
exports[`options validate should throw an error on the "client" option with '{"port":true}' value 1`] = `
83
83
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
84
84
- configuration.client.port should be one of these:
85
-
number | string | null
85
+
number | string | \\"auto\\"
86
86
-> Tells clients connected to devServer to use the provided port.
87
87
Details:
88
88
* configuration.client.port should be a number.
89
89
* configuration.client.port should be a string.
90
-
* configuration.client.port should be a null."
90
+
* configuration.client.port should be \\"auto\\"."
91
91
`;
92
92
93
93
exports[`options validate should throw an error on the "client" option with '{"progress":""}' value 1`] = `
@@ -361,12 +361,23 @@ exports[`options validate should throw an error on the "open" option with '{"tar
361
361
exports[`options validate should throw an error on the "port" option with 'false' value 1`] = `
362
362
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
363
363
- configuration.port should be one of these:
364
-
number | string | null
364
+
number | string | \\"auto\\"
365
365
-> Specify a port number to listen for requests on. https://webpack.js.org/configuration/dev-server/#devserverport
366
366
Details:
367
367
* configuration.port should be a number.
368
368
* configuration.port should be a string.
369
-
* configuration.port should be a null."
369
+
* configuration.port should be \\"auto\\"."
370
+
`;
371
+
372
+
exports[`options validate should throw an error on the "port" option with 'null' value 1`] = `
373
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
374
+
- configuration.port should be one of these:
375
+
number | string | \\"auto\\"
376
+
-> Specify a port number to listen for requests on. https://webpack.js.org/configuration/dev-server/#devserverport
377
+
Details:
378
+
* configuration.port should be a number.
379
+
* configuration.port should be a string.
380
+
* configuration.port should be \\"auto\\"."
370
381
`;
371
382
372
383
exports[`options validate should throw an error on the "proxy" option with '[]' value 1`] = `
Copy file name to clipboardExpand all lines: test/__snapshots__/validate-options.test.js.snap.webpack5
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -82,12 +82,12 @@ exports[`options validate should throw an error on the "client" option with '{"p
82
82
exports[`options validate should throw an error on the "client" option with '{"port":true}' value 1`] = `
83
83
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
84
84
- configuration.client.port should be one of these:
85
-
number | string | null
85
+
number | string | \\"auto\\"
86
86
-> Tells clients connected to devServer to use the provided port.
87
87
Details:
88
88
* configuration.client.port should be a number.
89
89
* configuration.client.port should be a string.
90
-
* configuration.client.port should be a null."
90
+
* configuration.client.port should be \\"auto\\"."
91
91
`;
92
92
93
93
exports[`options validate should throw an error on the "client" option with '{"progress":""}' value 1`] = `
@@ -361,12 +361,23 @@ exports[`options validate should throw an error on the "open" option with '{"tar
361
361
exports[`options validate should throw an error on the "port" option with 'false' value 1`] = `
362
362
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
363
363
- configuration.port should be one of these:
364
-
number | string | null
364
+
number | string | \\"auto\\"
365
365
-> Specify a port number to listen for requests on. https://webpack.js.org/configuration/dev-server/#devserverport
366
366
Details:
367
367
* configuration.port should be a number.
368
368
* configuration.port should be a string.
369
-
* configuration.port should be a null."
369
+
* configuration.port should be \\"auto\\"."
370
+
`;
371
+
372
+
exports[`options validate should throw an error on the "port" option with 'null' value 1`] = `
373
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
374
+
- configuration.port should be one of these:
375
+
number | string | \\"auto\\"
376
+
-> Specify a port number to listen for requests on. https://webpack.js.org/configuration/dev-server/#devserverport
377
+
Details:
378
+
* configuration.port should be a number.
379
+
* configuration.port should be a string.
380
+
* configuration.port should be \\"auto\\"."
370
381
`;
371
382
372
383
exports[`options validate should throw an error on the "proxy" option with '[]' value 1`] = `
0 commit comments