Skip to content

Commit d78905b

Browse files
authored
refactor: update app option description & link in schema (#5198)
1 parent 7153dd6 commit d78905b

File tree

3 files changed

+239
-413
lines changed

3 files changed

+239
-413
lines changed

lib/options.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"definitions": {
55
"App": {
66
"instanceof": "Function",
7-
"description": "Allows to use custom applications (i.e. 'connect', 'fastify' and etc).",
8-
"link": " https://webpack.js.org/configuration/dev-server/#devserverapp"
7+
"description": "Allows to use custom applications, such as 'connect', 'fastify', etc.",
8+
"link": "https://webpack.js.org/configuration/dev-server/#devserverapp"
99
},
1010
"AllowedHosts": {
1111
"anyOf": [

test/__snapshots__/validate-options.test.js.snap.webpack5

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ exports[`options validate should throw an error on the "allowedHosts" option wit
5555
exports[`options validate should throw an error on the "app" option with 'false' value 1`] = `
5656
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
5757
- options.app should be an instance of function.
58-
-> Allows to use custom applications (i.e. 'connect', 'fastify' and etc).
59-
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverapp"
58+
-> Allows to use custom applications, such as 'connect', 'fastify', etc.
59+
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverapp"
6060
`;
6161

6262
exports[`options validate should throw an error on the "app" option with 'test' value 1`] = `
6363
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
6464
- options.app should be an instance of function.
65-
-> Allows to use custom applications (i.e. 'connect', 'fastify' and etc).
66-
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverapp"
65+
-> Allows to use custom applications, such as 'connect', 'fastify', etc.
66+
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverapp"
6767
`;
6868

6969
exports[`options validate should throw an error on the "bonjour" option with '' value 1`] = `

0 commit comments

Comments
 (0)