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-2
Original file line number
Diff line number
Diff line change
@@ -415,7 +415,7 @@
415
415
},
416
416
"public": {
417
417
"type": "string",
418
-
"description": "When using inline mode and you're proxying dev-server, the inline client script does not always know where to connect to. It will try to guess the URL of the server based on window.location, but if that fails you'll need to use this. https://webpack.js.org/configuration/dev-server/#devserverpublic"
418
+
"description": "When using dev server and you're proxying dev-server, the client script does not always know where to connect to. It will try to guess the URL of the server based on window.location, but if that fails you'll need to use this. https://webpack.js.org/configuration/dev-server/#devserverpublic"
419
419
},
420
420
"setupExitSignals": {
421
421
"type": "boolean",
@@ -447,7 +447,7 @@
447
447
"minItems": 1
448
448
}
449
449
],
450
-
"description": "It is possible to configure advanced options for serving static files from contentBase. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic"
450
+
"description": "It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic"
exports[`options validate should throw an error on the "compress" option with '' value 1`] = `
81
84
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
82
-
- configuration.compress should be a boolean."
85
+
- configuration.compress should be a boolean.
86
+
-> Enable gzip compression for everything served. https://webpack.js.org/configuration/dev-server/#devservercompress"
83
87
`;
84
88
85
89
exports[`options validate should throw an error on the "dev" option with '' value 1`] = `
86
90
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
87
91
- configuration.dev should be an object:
88
-
object { … }"
92
+
object { … }
93
+
-> The bundled files will be available in the browser under this path. https://webpack.js.org/configuration/dev-server/#devserverdev-"
89
94
`;
90
95
91
96
exports[`options validate should throw an error on the "firewall" option with '' value 1`] = `
92
97
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
93
98
- configuration.firewall should be one of these:
94
99
boolean | [string, ...] (should not have fewer than 1 item)
100
+
-> Defines routes which are enabled by default, on by default and allows localhost. https://webpack.js.org/configuration/dev-server/#devserverfirewall
95
101
Details:
96
102
* configuration.firewall should be a boolean.
97
103
* configuration.firewall should be an array:
@@ -106,13 +112,15 @@ exports[`options validate should throw an error on the "firewall" option with '[
106
112
exports[`options validate should throw an error on the "headers" option with 'false' value 1`] = `
107
113
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
108
114
- configuration.headers should be an object:
109
-
object { … }"
115
+
object { … }
116
+
-> Adds headers to all responses. https://webpack.js.org/configuration/dev-server/#devserverheaders"
110
117
`;
111
118
112
119
exports[`options validate should throw an error on the "historyApiFallback" option with '' value 1`] = `
113
120
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
114
121
- configuration.historyApiFallback should be one of these:
115
122
boolean | object { … }
123
+
-> 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
116
124
Details:
117
125
* configuration.historyApiFallback should be a boolean.
118
126
* configuration.historyApiFallback should be an object:
@@ -123,6 +131,7 @@ exports[`options validate should throw an error on the "host" option with 'false
123
131
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
124
132
- configuration.host should be one of these:
125
133
string | null
134
+
-> Specify a host to use. If you want your server to be accessible externally. https://webpack.js.org/configuration/dev-server/#devserverhost
126
135
Details:
127
136
* configuration.host should be a string.
128
137
* configuration.host should be a null."
@@ -132,6 +141,7 @@ exports[`options validate should throw an error on the "hot" option with '' valu
132
141
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
133
142
- configuration.hot should be one of these:
134
143
boolean | \\"only\\"
144
+
-> Enable webpack's Hot Module Replacement feature. https://webpack.js.org/configuration/dev-server/#devserverhot
135
145
Details:
136
146
* configuration.hot should be a boolean.
137
147
* configuration.hot should be \\"only\\"."
@@ -141,20 +151,23 @@ exports[`options validate should throw an error on the "hot" option with 'foo' v
141
151
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
142
152
- configuration.hot should be one of these:
143
153
boolean | \\"only\\"
154
+
-> Enable webpack's Hot Module Replacement feature. https://webpack.js.org/configuration/dev-server/#devserverhot
144
155
Details:
145
156
* configuration.hot should be a boolean.
146
157
* configuration.hot should be \\"only\\"."
147
158
`;
148
159
149
160
exports[`options validate should throw an error on the "http2" option with '' value 1`] = `
150
161
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
151
-
- configuration.http2 should be a boolean."
162
+
- configuration.http2 should be a boolean.
163
+
-> Serve over HTTP/2 using spdy. https://webpack.js.org/configuration/dev-server/#devserverhttp2"
152
164
`;
153
165
154
166
exports[`options validate should throw an error on the "https" option with '' value 1`] = `
155
167
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS. https://webpack.js.org/configuration/dev-server/#devserverhttps
158
171
Details:
159
172
* configuration.https should be a boolean.
160
173
* configuration.https should be an object:
@@ -169,17 +182,20 @@ exports[`options validate should throw an error on the "https" option with '{"fo
169
182
170
183
exports[`options validate should throw an error on the "onAfterSetupMiddleware" option with 'false' value 1`] = `
171
184
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
172
-
- configuration.onAfterSetupMiddleware should be an instance of function."
185
+
- configuration.onAfterSetupMiddleware should be an instance of function.
186
+
-> Provides the ability to execute custom middleware after all other middleware internally within the server. https://webpack.js.org/configuration/dev-server/#devserverafter"
173
187
`;
174
188
175
189
exports[`options validate should throw an error on the "onBeforeSetupMiddleware" option with 'false' value 1`] = `
176
190
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
177
-
- configuration.onBeforeSetupMiddleware should be an instance of function."
191
+
- configuration.onBeforeSetupMiddleware should be an instance of function.
192
+
-> Provides the ability to execute custom middleware prior to all other middleware internally within the server. https://webpack.js.org/configuration/dev-server/#devserverbefore"
178
193
`;
179
194
180
195
exports[`options validate should throw an error on the "onListening" option with '' value 1`] = `
181
196
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
182
-
- configuration.onListening should be an instance of function."
197
+
- configuration.onListening should be an instance of function.
198
+
-> Provides an option to execute a custom function when webpack-dev-server starts listening for connections on a port. https://webpack.js.org/configuration/dev-server/#onlistening"
183
199
`;
184
200
185
201
exports[`options validate should throw an error on the "open" option with '' value 1`] = `
@@ -202,6 +218,7 @@ exports[`options validate should throw an error on the "port" option with 'false
202
218
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
203
219
- configuration.port should be one of these:
204
220
number | string | null
221
+
-> Specify a port number to listen for requests on. https://webpack.js.org/configuration/dev-server/#devserverport
205
222
Details:
206
223
* configuration.port should be a number.
207
224
* configuration.port should be a string.
@@ -217,6 +234,7 @@ exports[`options validate should throw an error on the "proxy" option with 'fals
217
234
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
218
235
- configuration.proxy should be one of these:
219
236
object { … } | [object { … } | function, ...] (should not have fewer than 1 item)
237
+
-> Proxying some URLs can be useful when you have a separate API backend development server and you want to send API requests on the same domain. https://webpack.js.org/configuration/dev-server/#devserverproxy
220
238
Details:
221
239
* configuration.proxy should be an object:
222
240
object { … }
@@ -228,6 +246,7 @@ exports[`options validate should throw an error on the "proxy" option with 'func
228
246
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
229
247
- configuration.proxy should be one of these:
230
248
object { … } | [object { … } | function, ...] (should not have fewer than 1 item)
249
+
-> Proxying some URLs can be useful when you have a separate API backend development server and you want to send API requests on the same domain. https://webpack.js.org/configuration/dev-server/#devserverproxy
231
250
Details:
232
251
* configuration.proxy should be an object:
233
252
object { … }
@@ -237,7 +256,8 @@ exports[`options validate should throw an error on the "proxy" option with 'func
237
256
238
257
exports[`options validate should throw an error on the "public" option with 'false' value 1`] = `
239
258
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
240
-
- configuration.public should be a string."
259
+
- configuration.public should be a string.
260
+
-> When using dev server and you're proxying dev-server, the client script does not always know where to connect to. It will try to guess the URL of the server based on window.location, but if that fails you'll need to use this. https://webpack.js.org/configuration/dev-server/#devserverpublic"
241
261
`;
242
262
243
263
exports[`options validate should throw an error on the "static" option with '' value 1`] = `
@@ -249,6 +269,7 @@ exports[`options validate should throw an error on the "static" option with '0'
249
269
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
252
273
Details:
253
274
* configuration.static should be a boolean.
254
275
* configuration.static should be a non-empty string.
@@ -262,6 +283,7 @@ exports[`options validate should throw an error on the "static" option with 'nul
262
283
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
265
287
Details:
266
288
* configuration.static should be a boolean.
267
289
* configuration.static should be a non-empty string.
@@ -281,6 +303,7 @@ exports[`options validate should throw an error on the "transportMode" option wi
281
303
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
282
304
- configuration.transportMode should be one of these:
-> This option allows us either to choose the current devServer transport mode for client/server individually or to provide custom client/server implementation. https://webpack.js.org/configuration/dev-server/#devservertransportmode
284
307
Details:
285
308
* configuration.transportMode.server should be one of these:
286
309
string | function
@@ -298,6 +321,7 @@ exports[`options validate should throw an error on the "transportMode" option wi
298
321
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
299
322
- configuration.transportMode should be one of these:
-> This option allows us either to choose the current devServer transport mode for client/server individually or to provide custom client/server implementation. https://webpack.js.org/configuration/dev-server/#devservertransportmode
301
325
Details:
302
326
* configuration.transportMode should be an object:
303
327
object { client?, server? }
@@ -309,6 +333,7 @@ exports[`options validate should throw an error on the "transportMode" option wi
309
333
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
310
334
- configuration.transportMode should be one of these:
-> This option allows us either to choose the current devServer transport mode for client/server individually or to provide custom client/server implementation. https://webpack.js.org/configuration/dev-server/#devservertransportmode
312
337
Details:
313
338
* configuration.transportMode should be an object:
314
339
object { client?, server? }
@@ -320,6 +345,7 @@ exports[`options validate should throw an error on the "watchFiles" option with
320
345
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
321
346
- configuration.watchFiles should be one of these:
0 commit comments