|
48 | 48 | "warning" |
49 | 49 | ] |
50 | 50 | }, |
51 | | - "clientMode": { |
52 | | - "type": "string" |
53 | | - }, |
54 | 51 | "compress": { |
55 | 52 | "type": "boolean" |
56 | 53 | }, |
|
303 | 300 | "serveIndex": { |
304 | 301 | "type": "boolean" |
305 | 302 | }, |
306 | | - "serverMode": { |
307 | | - "anyOf": [ |
308 | | - { |
309 | | - "type": "string" |
310 | | - }, |
311 | | - { |
312 | | - "instanceof": "Function" |
313 | | - } |
314 | | - ] |
315 | | - }, |
316 | 303 | "serverSideRender": { |
317 | 304 | "type": "boolean" |
318 | 305 | }, |
|
364 | 351 | } |
365 | 352 | ] |
366 | 353 | }, |
| 354 | + "transportMode": { |
| 355 | + "anyOf": [ |
| 356 | + { |
| 357 | + "type": "object", |
| 358 | + "properties": { |
| 359 | + "client": { |
| 360 | + "type": "string" |
| 361 | + }, |
| 362 | + "server": { |
| 363 | + "anyOf": [ |
| 364 | + { |
| 365 | + "type": "string" |
| 366 | + }, |
| 367 | + { |
| 368 | + "instanceof": "Function" |
| 369 | + } |
| 370 | + ] |
| 371 | + } |
| 372 | + }, |
| 373 | + "additionalProperties": false |
| 374 | + }, |
| 375 | + { |
| 376 | + "enum": ["sockjs", "ws"] |
| 377 | + } |
| 378 | + ] |
| 379 | + }, |
367 | 380 | "useLocalIp": { |
368 | 381 | "type": "boolean" |
369 | 382 | }, |
|
396 | 409 | "ca": "should be {String|Buffer}", |
397 | 410 | "cert": "should be {String|Buffer}", |
398 | 411 | "clientLogLevel": "should be {String} and equal to one of the allowed values\n\n [ 'none', 'silent', 'info', 'debug', 'trace', 'error', 'warning', 'warn' ]\n\n (https://webpack.js.org/configuration/dev-server/#devserverclientloglevel)", |
399 | | - "clientMode": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverclientmode)", |
400 | 412 | "compress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devservercompress)", |
401 | 413 | "contentBase": "should be {Number|String|Array} (https://webpack.js.org/configuration/dev-server/#devservercontentbase)", |
402 | 414 | "disableHostCheck": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck)", |
|
438 | 450 | "reporter": "should be {Function} (https://github.com/webpack/webpack-dev-middleware#reporter)", |
439 | 451 | "requestCert": "should be {Boolean}", |
440 | 452 | "serveIndex": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverserveindex)", |
441 | | - "serverMode": "should be {String|Function} (https://webpack.js.org/configuration/dev-server/#devserverservermode)", |
442 | 453 | "serverSideRender": "should be {Boolean} (https://github.com/webpack/webpack-dev-middleware#serversiderender)", |
443 | 454 | "setup": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserversetup)", |
444 | 455 | "sockHost": "should be {String|Null} (https://webpack.js.org/configuration/dev-server/#devserversockhost)", |
|
447 | 458 | "socket": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserversocket)", |
448 | 459 | "staticOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverstaticoptions)", |
449 | 460 | "stats": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserverstats-)", |
| 461 | + "transportMode": "should be {String|Object} (https://webpack.js.org/configuration/dev-server/#devservertransportmode)", |
450 | 462 | "useLocalIp": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserveruselocalip)", |
451 | 463 | "warn": "should be {Function}", |
452 | 464 | "watchContentBase": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverwatchcontentbase)", |
|
0 commit comments