|
136 | 136 | },
|
137 | 137 | "properties": {
|
138 | 138 | "bonjour": {
|
139 |
| - "type": "boolean" |
| 139 | + "type": "boolean", |
| 140 | + "description": "Broadcasts the server via ZeroConf networking on start. https://webpack.js.org/configuration/dev-server/#devserverbonjour" |
140 | 141 | },
|
141 | 142 | "client": {
|
142 | 143 | "type": "object",
|
|
205 | 206 | ]
|
206 | 207 | }
|
207 | 208 | },
|
| 209 | + "description": "Specifies client properties. https://webpack.js.org/configuration/dev-server/#devserverclient", |
208 | 210 | "additionalProperties": false
|
209 | 211 | },
|
210 | 212 | "compress": {
|
211 |
| - "type": "boolean" |
| 213 | + "type": "boolean", |
| 214 | + "description": "Enable gzip compression for everything served. https://webpack.js.org/configuration/dev-server/#devservercompress" |
212 | 215 | },
|
213 | 216 | "dev": {
|
214 |
| - "type": "object" |
| 217 | + "type": "object", |
| 218 | + "description": "The bundled files will be available in the browser under this path. https://webpack.js.org/configuration/dev-server/#devserverdev-" |
215 | 219 | },
|
216 | 220 | "firewall": {
|
217 | 221 | "anyOf": [
|
|
225 | 229 | },
|
226 | 230 | "minItems": 1
|
227 | 231 | }
|
228 |
| - ] |
| 232 | + ], |
| 233 | + "description": "Defines routes which are enabled by default, on by default and allows localhost. https://webpack.js.org/configuration/dev-server/#devserverfirewall" |
229 | 234 | },
|
230 | 235 | "headers": {
|
231 |
| - "type": "object" |
| 236 | + "type": "object", |
| 237 | + "description": "Adds headers to all responses. https://webpack.js.org/configuration/dev-server/#devserverheaders" |
232 | 238 | },
|
233 | 239 | "historyApiFallback": {
|
234 | 240 | "anyOf": [
|
|
238 | 244 | {
|
239 | 245 | "type": "object"
|
240 | 246 | }
|
241 |
| - ] |
| 247 | + ], |
| 248 | + "description": "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" |
242 | 249 | },
|
243 | 250 | "host": {
|
244 | 251 | "anyOf": [
|
|
248 | 255 | {
|
249 | 256 | "type": "null"
|
250 | 257 | }
|
251 |
| - ] |
| 258 | + ], |
| 259 | + "description": "Specify a host to use. If you want your server to be accessible externally. https://webpack.js.org/configuration/dev-server/#devserverhost" |
252 | 260 | },
|
253 | 261 | "hot": {
|
254 | 262 | "anyOf": [
|
|
258 | 266 | {
|
259 | 267 | "enum": ["only"]
|
260 | 268 | }
|
261 |
| - ] |
| 269 | + ], |
| 270 | + "description": "Enable webpack's Hot Module Replacement feature. https://webpack.js.org/configuration/dev-server/#devserverhot" |
262 | 271 | },
|
263 | 272 | "http2": {
|
264 |
| - "type": "boolean" |
| 273 | + "type": "boolean", |
| 274 | + "description": "Serve over HTTP/2 using spdy. https://webpack.js.org/configuration/dev-server/#devserverhttp2" |
265 | 275 | },
|
266 | 276 | "https": {
|
267 | 277 | "anyOf": [
|
|
320 | 330 | }
|
321 | 331 | }
|
322 | 332 | }
|
323 |
| - ] |
| 333 | + ], |
| 334 | + "description": "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" |
324 | 335 | },
|
325 | 336 | "liveReload": {
|
326 |
| - "type": "boolean" |
| 337 | + "type": "boolean", |
| 338 | + "description": "By default, the dev-server will reload/refresh the page when file changes are detected. https://webpack.js.org/configuration/dev-server/#devserverlivereload" |
327 | 339 | },
|
328 | 340 | "onAfterSetupMiddleware": {
|
329 |
| - "instanceof": "Function" |
| 341 | + "instanceof": "Function", |
| 342 | + "description": "Provides the ability to execute custom middleware after all other middleware internally within the server. https://webpack.js.org/configuration/dev-server/#devserverafter" |
330 | 343 | },
|
331 | 344 | "onBeforeSetupMiddleware": {
|
332 |
| - "instanceof": "Function" |
| 345 | + "instanceof": "Function", |
| 346 | + "description": "Provides the ability to execute custom middleware prior to all other middleware internally within the server. https://webpack.js.org/configuration/dev-server/#devserverbefore" |
333 | 347 | },
|
334 | 348 | "onListening": {
|
335 |
| - "instanceof": "Function" |
| 349 | + "instanceof": "Function", |
| 350 | + "description": "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" |
336 | 351 | },
|
337 | 352 | "open": {
|
338 | 353 | "anyOf": [
|
|
359 | 374 | },
|
360 | 375 | "minItems": 1
|
361 | 376 | }
|
362 |
| - ] |
| 377 | + ], |
| 378 | + "description": "Tells dev-server to open the browser after server had been started. Set it to true to open your default browser. https://webpack.js.org/configuration/dev-server/#devserveropen" |
363 | 379 | },
|
364 | 380 | "port": {
|
365 | 381 | "anyOf": [
|
|
372 | 388 | {
|
373 | 389 | "type": "null"
|
374 | 390 | }
|
375 |
| - ] |
| 391 | + ], |
| 392 | + "description": "Specify a port number to listen for requests on. https://webpack.js.org/configuration/dev-server/#devserverport" |
376 | 393 | },
|
377 | 394 | "proxy": {
|
378 | 395 | "anyOf": [
|
|
393 | 410 | },
|
394 | 411 | "minItems": 1
|
395 | 412 | }
|
396 |
| - ] |
| 413 | + ], |
| 414 | + "description": "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" |
397 | 415 | },
|
398 | 416 | "public": {
|
399 |
| - "type": "string" |
| 417 | + "type": "string", |
| 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" |
400 | 419 | },
|
401 | 420 | "setupExitSignals": {
|
402 |
| - "type": "boolean" |
| 421 | + "type": "boolean", |
| 422 | + "description": "It takes a boolean and if true (default on CLI), the server will close and exit the process on SIGINT and SIGTERM. https://webpack.js.org/configuration/dev-server/#devserversetupexitsignals" |
403 | 423 | },
|
404 | 424 | "static": {
|
405 | 425 | "anyOf": [
|
|
426 | 446 | },
|
427 | 447 | "minItems": 1
|
428 | 448 | }
|
429 |
| - ] |
| 449 | + ], |
| 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" |
430 | 451 | },
|
431 | 452 | "transportMode": {
|
432 | 453 | "anyOf": [
|
|
452 | 473 | {
|
453 | 474 | "enum": ["sockjs", "ws"]
|
454 | 475 | }
|
455 |
| - ] |
| 476 | + ], |
| 477 | + "description": "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" |
456 | 478 | },
|
457 | 479 | "watchFiles": {
|
458 | 480 | "anyOf": [
|
|
475 | 497 | ]
|
476 | 498 | }
|
477 | 499 | }
|
478 |
| - ] |
479 |
| - } |
480 |
| - }, |
481 |
| - "errorMessage": { |
482 |
| - "properties": { |
483 |
| - "bonjour": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverbonjour)", |
484 |
| - "client": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverclient)", |
485 |
| - "compress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devservercompress)", |
486 |
| - "dev": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverdev-)", |
487 |
| - "firewall": "should be {Boolean|Array} (https://webpack.js.org/configuration/dev-server/#devserverfirewall)", |
488 |
| - "headers": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverheaders)", |
489 |
| - "historyApiFallback": "should be {Boolean|Object} (https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback)", |
490 |
| - "host": "should be {String|Null} (https://webpack.js.org/configuration/dev-server/#devserverhost)", |
491 |
| - "hot": "should be {Boolean|String} (https://webpack.js.org/configuration/dev-server/#devserverhot)", |
492 |
| - "http2": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhttp2)", |
493 |
| - "https": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhttps)", |
494 |
| - "liveReload": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverlivereload)", |
495 |
| - "onAfterSetupMiddleware": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverafter)", |
496 |
| - "onBeforeSetupMiddleware": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverbefore)", |
497 |
| - "onListening": "should be {Function} (https://webpack.js.org/configuration/dev-server/#onlistening)", |
498 |
| - "open": "should be {Boolean|String|(String | Object)[]} (https://webpack.js.org/configuration/dev-server/#devserveropen)", |
499 |
| - "port": "should be {Number|String|Null} (https://webpack.js.org/configuration/dev-server/#devserverport)", |
500 |
| - "proxy": "should be {Object|Array} (https://webpack.js.org/configuration/dev-server/#devserverproxy)", |
501 |
| - "public": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpublic)", |
502 |
| - "setupExitSignals": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserversetupexitsignals)", |
503 |
| - "static": "should be {Boolean|String|Object|Array} (https://webpack.js.org/configuration/dev-server/#devserverstatic)", |
504 |
| - "transportMode": "should be {String|Object} (https://webpack.js.org/configuration/dev-server/#devservertransportmode)", |
505 |
| - "watchFiles": "should be {String|Array|Object} (https://webpack.js.org/configuration/dev-server/#devserverwatchfiles)" |
| 500 | + ], |
| 501 | + "description": "List of files to watch for file changes and serve. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles" |
506 | 502 | }
|
507 | 503 | },
|
508 | 504 | "additionalProperties": false
|
|
0 commit comments