webpack-dev-server 4.6.0 → 4.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -66
- package/bin/cli-flags.js +265 -267
- package/bin/process-arguments.js +87 -7
- package/bin/webpack-dev-server.js +3 -0
- package/client/clients/SockJSClient.js +26 -3
- package/client/clients/WebSocketClient.js +16 -1
- package/client/index.js +71 -2
- package/client/modules/logger/index.js +3 -0
- package/client/modules/sockjs-client/index.js +15 -4
- package/client/overlay.js +38 -3
- package/client/socket.js +17 -6
- package/client/utils/createSocketURL.js +71 -4
- package/client/utils/getCurrentScriptSource.js +3 -0
- package/client/utils/log.js +6 -1
- package/client/utils/parseURL.js +17 -19
- package/client/utils/reloadApp.js +15 -2
- package/client/utils/sendMessage.js +5 -0
- package/lib/Server.js +1673 -759
- package/lib/options.json +37 -18
- package/lib/servers/BaseServer.js +8 -0
- package/lib/servers/SockJSServer.js +42 -9
- package/lib/servers/WebsocketServer.js +66 -35
- package/package.json +24 -14
- package/types/bin/cli-flags.d.ts +934 -0
- package/types/bin/process-arguments.d.ts +50 -0
- package/types/bin/webpack-dev-server.d.ts +27 -0
- package/types/lib/Server.d.ts +3388 -0
- package/types/lib/servers/BaseServer.d.ts +15 -0
- package/types/lib/servers/SockJSServer.d.ts +12 -0
- package/types/lib/servers/WebsocketServer.d.ts +13 -0
package/bin/cli-flags.js
CHANGED
|
@@ -56,29 +56,6 @@ module.exports = {
|
|
|
56
56
|
simpleType: "boolean",
|
|
57
57
|
multiple: false,
|
|
58
58
|
},
|
|
59
|
-
"client-web-socket-transport": {
|
|
60
|
-
configs: [
|
|
61
|
-
{
|
|
62
|
-
type: "enum",
|
|
63
|
-
values: ["sockjs", "ws"],
|
|
64
|
-
multiple: false,
|
|
65
|
-
description:
|
|
66
|
-
"Allows to set custom web socket transport to communicate with dev server.",
|
|
67
|
-
path: "client.webSocketTransport",
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
type: "string",
|
|
71
|
-
multiple: false,
|
|
72
|
-
description:
|
|
73
|
-
"Allows to set custom web socket transport to communicate with dev server.",
|
|
74
|
-
path: "client.webSocketTransport",
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
description:
|
|
78
|
-
"Allows to set custom web socket transport to communicate with dev server.",
|
|
79
|
-
simpleType: "string",
|
|
80
|
-
multiple: false,
|
|
81
|
-
},
|
|
82
59
|
client: {
|
|
83
60
|
configs: [
|
|
84
61
|
{
|
|
@@ -101,32 +78,14 @@ module.exports = {
|
|
|
101
78
|
type: "enum",
|
|
102
79
|
values: ["none", "error", "warn", "info", "log", "verbose"],
|
|
103
80
|
multiple: false,
|
|
104
|
-
description:
|
|
105
|
-
"Allows to specify options for client script in the browser or disable client script.",
|
|
81
|
+
description: "Allows to set log level in the browser.",
|
|
106
82
|
path: "client.logging",
|
|
107
83
|
},
|
|
108
84
|
],
|
|
109
|
-
description:
|
|
110
|
-
"Allows to specify options for client script in the browser or disable client script.",
|
|
85
|
+
description: "Allows to set log level in the browser.",
|
|
111
86
|
simpleType: "string",
|
|
112
87
|
multiple: false,
|
|
113
88
|
},
|
|
114
|
-
"client-progress": {
|
|
115
|
-
configs: [
|
|
116
|
-
{
|
|
117
|
-
type: "boolean",
|
|
118
|
-
multiple: false,
|
|
119
|
-
description:
|
|
120
|
-
"Prints compilation progress in percentage in the browser.",
|
|
121
|
-
path: "client.progress",
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
description: "Prints compilation progress in percentage in the browser.",
|
|
125
|
-
negatedDescription:
|
|
126
|
-
"Does not print compilation progress in percentage in the browser.",
|
|
127
|
-
simpleType: "boolean",
|
|
128
|
-
multiple: false,
|
|
129
|
-
},
|
|
130
89
|
"client-overlay": {
|
|
131
90
|
configs: [
|
|
132
91
|
{
|
|
@@ -174,6 +133,22 @@ module.exports = {
|
|
|
174
133
|
simpleType: "boolean",
|
|
175
134
|
multiple: false,
|
|
176
135
|
},
|
|
136
|
+
"client-progress": {
|
|
137
|
+
configs: [
|
|
138
|
+
{
|
|
139
|
+
type: "boolean",
|
|
140
|
+
multiple: false,
|
|
141
|
+
description:
|
|
142
|
+
"Prints compilation progress in percentage in the browser.",
|
|
143
|
+
path: "client.progress",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
description: "Prints compilation progress in percentage in the browser.",
|
|
147
|
+
negatedDescription:
|
|
148
|
+
"Does not print compilation progress in percentage in the browser.",
|
|
149
|
+
simpleType: "boolean",
|
|
150
|
+
multiple: false,
|
|
151
|
+
},
|
|
177
152
|
"client-reconnect": {
|
|
178
153
|
configs: [
|
|
179
154
|
{
|
|
@@ -197,6 +172,29 @@ module.exports = {
|
|
|
197
172
|
simpleType: "string",
|
|
198
173
|
multiple: false,
|
|
199
174
|
},
|
|
175
|
+
"client-web-socket-transport": {
|
|
176
|
+
configs: [
|
|
177
|
+
{
|
|
178
|
+
type: "enum",
|
|
179
|
+
values: ["sockjs", "ws"],
|
|
180
|
+
multiple: false,
|
|
181
|
+
description:
|
|
182
|
+
"Allows to set custom web socket transport to communicate with dev server.",
|
|
183
|
+
path: "client.webSocketTransport",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
type: "string",
|
|
187
|
+
multiple: false,
|
|
188
|
+
description:
|
|
189
|
+
"Allows to set custom web socket transport to communicate with dev server.",
|
|
190
|
+
path: "client.webSocketTransport",
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
description:
|
|
194
|
+
"Allows to set custom web socket transport to communicate with dev server.",
|
|
195
|
+
simpleType: "string",
|
|
196
|
+
multiple: false,
|
|
197
|
+
},
|
|
200
198
|
"client-web-socket-url": {
|
|
201
199
|
configs: [
|
|
202
200
|
{
|
|
@@ -227,25 +225,18 @@ module.exports = {
|
|
|
227
225
|
simpleType: "string",
|
|
228
226
|
multiple: false,
|
|
229
227
|
},
|
|
230
|
-
"client-web-socket-url-
|
|
228
|
+
"client-web-socket-url-password": {
|
|
231
229
|
configs: [
|
|
232
230
|
{
|
|
233
|
-
type: "
|
|
231
|
+
type: "string",
|
|
234
232
|
multiple: false,
|
|
235
233
|
description:
|
|
236
|
-
"Tells clients connected to devServer to use the provided
|
|
237
|
-
path: "client.webSocketURL.
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
description:
|
|
241
|
-
"Tells clients connected to devServer to use the provided port.",
|
|
242
|
-
multiple: false,
|
|
243
|
-
path: "client.webSocketURL.port",
|
|
244
|
-
type: "string",
|
|
234
|
+
"Tells clients connected to devServer to use the provided password to authenticate.",
|
|
235
|
+
path: "client.webSocketURL.password",
|
|
245
236
|
},
|
|
246
237
|
],
|
|
247
238
|
description:
|
|
248
|
-
"Tells clients connected to devServer to use the provided
|
|
239
|
+
"Tells clients connected to devServer to use the provided password to authenticate.",
|
|
249
240
|
simpleType: "string",
|
|
250
241
|
multiple: false,
|
|
251
242
|
},
|
|
@@ -264,112 +255,63 @@ module.exports = {
|
|
|
264
255
|
simpleType: "string",
|
|
265
256
|
multiple: false,
|
|
266
257
|
},
|
|
267
|
-
"client-web-socket-url-
|
|
258
|
+
"client-web-socket-url-port": {
|
|
268
259
|
configs: [
|
|
269
260
|
{
|
|
270
|
-
|
|
271
|
-
"Tells clients connected to devServer to use the provided protocol.",
|
|
261
|
+
type: "number",
|
|
272
262
|
multiple: false,
|
|
273
|
-
path: "client.webSocketURL.protocol",
|
|
274
|
-
type: "enum",
|
|
275
|
-
values: ["auto"],
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
263
|
description:
|
|
279
|
-
"Tells clients connected to devServer to use the provided
|
|
280
|
-
|
|
281
|
-
path: "client.webSocketURL.protocol",
|
|
282
|
-
type: "string",
|
|
264
|
+
"Tells clients connected to devServer to use the provided port.",
|
|
265
|
+
path: "client.webSocketURL.port",
|
|
283
266
|
},
|
|
284
|
-
],
|
|
285
|
-
description:
|
|
286
|
-
"Tells clients connected to devServer to use the provided protocol.",
|
|
287
|
-
multiple: false,
|
|
288
|
-
simpleType: "string",
|
|
289
|
-
},
|
|
290
|
-
"client-web-socket-url-username": {
|
|
291
|
-
configs: [
|
|
292
267
|
{
|
|
293
|
-
type: "string",
|
|
294
|
-
multiple: false,
|
|
295
268
|
description:
|
|
296
|
-
"Tells clients connected to devServer to use the provided
|
|
297
|
-
path: "client.webSocketURL.username",
|
|
298
|
-
},
|
|
299
|
-
],
|
|
300
|
-
description:
|
|
301
|
-
"Tells clients connected to devServer to use the provided username to authenticate.",
|
|
302
|
-
simpleType: "string",
|
|
303
|
-
multiple: false,
|
|
304
|
-
},
|
|
305
|
-
"client-web-socket-url-password": {
|
|
306
|
-
configs: [
|
|
307
|
-
{
|
|
308
|
-
type: "string",
|
|
269
|
+
"Tells clients connected to devServer to use the provided port.",
|
|
309
270
|
multiple: false,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
path: "client.webSocketURL.password",
|
|
271
|
+
path: "client.webSocketURL.port",
|
|
272
|
+
type: "string",
|
|
313
273
|
},
|
|
314
274
|
],
|
|
315
275
|
description:
|
|
316
|
-
"Tells clients connected to devServer to use the provided
|
|
276
|
+
"Tells clients connected to devServer to use the provided port.",
|
|
317
277
|
simpleType: "string",
|
|
318
278
|
multiple: false,
|
|
319
279
|
},
|
|
320
|
-
"web-socket-
|
|
280
|
+
"client-web-socket-url-protocol": {
|
|
321
281
|
configs: [
|
|
322
282
|
{
|
|
323
283
|
description:
|
|
324
|
-
"
|
|
325
|
-
multiple: false,
|
|
326
|
-
path: "webSocketServer",
|
|
327
|
-
type: "enum",
|
|
328
|
-
values: [false],
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
description:
|
|
332
|
-
"Deprecated: please use 'webSocketServer.type'/'--web-socket-server-type' option.",
|
|
284
|
+
"Tells clients connected to devServer to use the provided protocol.",
|
|
333
285
|
multiple: false,
|
|
334
|
-
path: "
|
|
286
|
+
path: "client.webSocketURL.protocol",
|
|
335
287
|
type: "enum",
|
|
336
|
-
values: ["
|
|
288
|
+
values: ["auto"],
|
|
337
289
|
},
|
|
338
290
|
{
|
|
339
291
|
description:
|
|
340
|
-
"
|
|
292
|
+
"Tells clients connected to devServer to use the provided protocol.",
|
|
341
293
|
multiple: false,
|
|
342
|
-
path: "
|
|
294
|
+
path: "client.webSocketURL.protocol",
|
|
343
295
|
type: "string",
|
|
344
296
|
},
|
|
345
297
|
],
|
|
346
|
-
|
|
347
298
|
description:
|
|
348
|
-
"
|
|
349
|
-
simpleType: "string",
|
|
299
|
+
"Tells clients connected to devServer to use the provided protocol.",
|
|
350
300
|
multiple: false,
|
|
301
|
+
simpleType: "string",
|
|
351
302
|
},
|
|
352
|
-
"web-socket-
|
|
303
|
+
"client-web-socket-url-username": {
|
|
353
304
|
configs: [
|
|
354
305
|
{
|
|
355
|
-
|
|
356
|
-
"Allows to set web socket server and options (by default 'ws').",
|
|
306
|
+
type: "string",
|
|
357
307
|
multiple: false,
|
|
358
|
-
path: "webSocketServer.type",
|
|
359
|
-
type: "enum",
|
|
360
|
-
values: ["sockjs", "ws"],
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
308
|
description:
|
|
364
|
-
"
|
|
365
|
-
|
|
366
|
-
path: "webSocketServer.type",
|
|
367
|
-
type: "string",
|
|
309
|
+
"Tells clients connected to devServer to use the provided username to authenticate.",
|
|
310
|
+
path: "client.webSocketURL.username",
|
|
368
311
|
},
|
|
369
312
|
],
|
|
370
|
-
|
|
371
313
|
description:
|
|
372
|
-
"
|
|
314
|
+
"Tells clients connected to devServer to use the provided username to authenticate.",
|
|
373
315
|
simpleType: "string",
|
|
374
316
|
multiple: false,
|
|
375
317
|
},
|
|
@@ -449,12 +391,12 @@ module.exports = {
|
|
|
449
391
|
type: "boolean",
|
|
450
392
|
multiple: false,
|
|
451
393
|
description:
|
|
452
|
-
"Allows to serve over HTTP/2 using SPDY. Deprecated,
|
|
394
|
+
"Allows to serve over HTTP/2 using SPDY. Deprecated, use the `server` option.",
|
|
453
395
|
path: "http2",
|
|
454
396
|
},
|
|
455
397
|
],
|
|
456
398
|
description:
|
|
457
|
-
"Allows to serve over HTTP/2 using SPDY. Deprecated,
|
|
399
|
+
"Allows to serve over HTTP/2 using SPDY. Deprecated, use the `server` option.",
|
|
458
400
|
negatedDescription: "Does not serve over HTTP/2 using SPDY.",
|
|
459
401
|
simpleType: "boolean",
|
|
460
402
|
multiple: false,
|
|
@@ -465,60 +407,29 @@ module.exports = {
|
|
|
465
407
|
type: "boolean",
|
|
466
408
|
multiple: false,
|
|
467
409
|
description:
|
|
468
|
-
"Allows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP). Deprecated,
|
|
410
|
+
"Allows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP). Deprecated, use the `server` option.",
|
|
469
411
|
path: "https",
|
|
470
412
|
},
|
|
471
413
|
],
|
|
472
414
|
description:
|
|
473
|
-
"Allows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP). Deprecated,
|
|
415
|
+
"Allows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP). Deprecated, use the `server` option.",
|
|
474
416
|
negatedDescription:
|
|
475
417
|
"Disallows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP).",
|
|
476
418
|
simpleType: "boolean",
|
|
477
419
|
multiple: false,
|
|
478
420
|
},
|
|
479
|
-
"https-passphrase": {
|
|
480
|
-
configs: [
|
|
481
|
-
{
|
|
482
|
-
type: "string",
|
|
483
|
-
multiple: false,
|
|
484
|
-
description:
|
|
485
|
-
"Passphrase for a pfx file. Deprecated, it will be removed in favor of the `server.options.passphrase` option.",
|
|
486
|
-
path: "https.passphrase",
|
|
487
|
-
},
|
|
488
|
-
],
|
|
489
|
-
description:
|
|
490
|
-
"Passphrase for a pfx file. Deprecated, it will be removed in favor of the `server.options.passphrase` option.",
|
|
491
|
-
simpleType: "string",
|
|
492
|
-
multiple: false,
|
|
493
|
-
},
|
|
494
|
-
"https-request-cert": {
|
|
495
|
-
configs: [
|
|
496
|
-
{
|
|
497
|
-
type: "boolean",
|
|
498
|
-
multiple: false,
|
|
499
|
-
description:
|
|
500
|
-
"Request for an SSL certificate. Deprecated, it will be removed in favor of the `server.options.requestCert` option.",
|
|
501
|
-
path: "https.requestCert",
|
|
502
|
-
},
|
|
503
|
-
],
|
|
504
|
-
description:
|
|
505
|
-
"Request for an SSL certificate. Deprecated, it will be removed in favor of the `server.options.requestCert` option.",
|
|
506
|
-
negatedDescription: "Does not request for an SSL certificate.",
|
|
507
|
-
simpleType: "boolean",
|
|
508
|
-
multiple: false,
|
|
509
|
-
},
|
|
510
421
|
"https-ca": {
|
|
511
422
|
configs: [
|
|
512
423
|
{
|
|
513
424
|
type: "string",
|
|
514
425
|
multiple: true,
|
|
515
426
|
description:
|
|
516
|
-
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated,
|
|
427
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
517
428
|
path: "https.ca[]",
|
|
518
429
|
},
|
|
519
430
|
],
|
|
520
431
|
description:
|
|
521
|
-
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated,
|
|
432
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
522
433
|
simpleType: "string",
|
|
523
434
|
multiple: true,
|
|
524
435
|
},
|
|
@@ -526,14 +437,14 @@ module.exports = {
|
|
|
526
437
|
configs: [
|
|
527
438
|
{
|
|
528
439
|
description:
|
|
529
|
-
"Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated,
|
|
440
|
+
"Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
530
441
|
multiple: false,
|
|
531
442
|
path: "https.ca",
|
|
532
443
|
type: "reset",
|
|
533
444
|
},
|
|
534
445
|
],
|
|
535
446
|
description:
|
|
536
|
-
"Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated,
|
|
447
|
+
"Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
537
448
|
multiple: false,
|
|
538
449
|
simpleType: "boolean",
|
|
539
450
|
},
|
|
@@ -543,12 +454,12 @@ module.exports = {
|
|
|
543
454
|
type: "string",
|
|
544
455
|
multiple: true,
|
|
545
456
|
description:
|
|
546
|
-
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated,
|
|
457
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
547
458
|
path: "https.cacert[]",
|
|
548
459
|
},
|
|
549
460
|
],
|
|
550
461
|
description:
|
|
551
|
-
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated,
|
|
462
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
552
463
|
simpleType: "string",
|
|
553
464
|
multiple: true,
|
|
554
465
|
},
|
|
@@ -556,137 +467,168 @@ module.exports = {
|
|
|
556
467
|
configs: [
|
|
557
468
|
{
|
|
558
469
|
description:
|
|
559
|
-
"Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated,
|
|
470
|
+
"Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
560
471
|
multiple: false,
|
|
561
472
|
path: "https.cacert",
|
|
562
473
|
type: "reset",
|
|
563
474
|
},
|
|
564
475
|
],
|
|
565
476
|
description:
|
|
566
|
-
"Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated,
|
|
477
|
+
"Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
567
478
|
multiple: false,
|
|
568
479
|
simpleType: "boolean",
|
|
569
480
|
},
|
|
570
|
-
"https-
|
|
481
|
+
"https-cert": {
|
|
571
482
|
configs: [
|
|
572
483
|
{
|
|
573
484
|
type: "string",
|
|
574
485
|
multiple: true,
|
|
575
486
|
description:
|
|
576
|
-
"Path to an SSL
|
|
577
|
-
path: "https.
|
|
487
|
+
"Path to an SSL certificate or content of an SSL certificate. Deprecated, use the `server.options.cert` option.",
|
|
488
|
+
path: "https.cert[]",
|
|
578
489
|
},
|
|
579
490
|
],
|
|
580
491
|
description:
|
|
581
|
-
"Path to an SSL
|
|
492
|
+
"Path to an SSL certificate or content of an SSL certificate. Deprecated, use the `server.options.cert` option.",
|
|
582
493
|
simpleType: "string",
|
|
583
494
|
multiple: true,
|
|
584
495
|
},
|
|
585
|
-
"https-
|
|
496
|
+
"https-cert-reset": {
|
|
586
497
|
configs: [
|
|
587
498
|
{
|
|
588
499
|
description:
|
|
589
|
-
"Clear all items provided in 'https.
|
|
500
|
+
"Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL certificate. Deprecated, use the `server.options.cert` option.",
|
|
590
501
|
multiple: false,
|
|
591
|
-
path: "https.
|
|
502
|
+
path: "https.cert",
|
|
592
503
|
type: "reset",
|
|
593
504
|
},
|
|
594
505
|
],
|
|
595
506
|
description:
|
|
596
|
-
"Clear all items provided in 'https.
|
|
507
|
+
"Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL certificate. Deprecated, use the `server.options.cert` option.",
|
|
597
508
|
multiple: false,
|
|
598
509
|
simpleType: "boolean",
|
|
599
510
|
},
|
|
600
|
-
"https-
|
|
511
|
+
"https-crl": {
|
|
601
512
|
configs: [
|
|
602
513
|
{
|
|
603
|
-
type: "string",
|
|
604
|
-
multiple: true,
|
|
605
514
|
description:
|
|
606
|
-
"Path to
|
|
607
|
-
|
|
515
|
+
"Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, use the `server.options.crl` option.",
|
|
516
|
+
multiple: true,
|
|
517
|
+
path: "https.crl[]",
|
|
518
|
+
type: "string",
|
|
608
519
|
},
|
|
609
520
|
],
|
|
610
521
|
description:
|
|
611
|
-
"Path to
|
|
612
|
-
simpleType: "string",
|
|
522
|
+
"Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, use the `server.options.crl` option.",
|
|
613
523
|
multiple: true,
|
|
524
|
+
simpleType: "string",
|
|
614
525
|
},
|
|
615
|
-
"https-
|
|
526
|
+
"https-crl-reset": {
|
|
616
527
|
configs: [
|
|
617
528
|
{
|
|
618
529
|
description:
|
|
619
|
-
"Clear all items provided in 'https.
|
|
530
|
+
"Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, use the `server.options.crl` option.",
|
|
620
531
|
multiple: false,
|
|
621
|
-
path: "https.
|
|
532
|
+
path: "https.crl",
|
|
622
533
|
type: "reset",
|
|
623
534
|
},
|
|
624
535
|
],
|
|
625
536
|
description:
|
|
626
|
-
"Clear all items provided in 'https.
|
|
537
|
+
"Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, use the `server.options.crl` option.",
|
|
627
538
|
multiple: false,
|
|
628
539
|
simpleType: "boolean",
|
|
629
540
|
},
|
|
630
|
-
"https-
|
|
541
|
+
"https-key": {
|
|
631
542
|
configs: [
|
|
632
543
|
{
|
|
633
544
|
type: "string",
|
|
634
545
|
multiple: true,
|
|
635
546
|
description:
|
|
636
|
-
"Path to an SSL
|
|
637
|
-
path: "https.
|
|
547
|
+
"Path to an SSL key or content of an SSL key. Deprecated, use the `server.options.key` option.",
|
|
548
|
+
path: "https.key[]",
|
|
638
549
|
},
|
|
639
550
|
],
|
|
640
551
|
description:
|
|
641
|
-
"Path to an SSL
|
|
552
|
+
"Path to an SSL key or content of an SSL key. Deprecated, use the `server.options.key` option.",
|
|
642
553
|
simpleType: "string",
|
|
643
554
|
multiple: true,
|
|
644
555
|
},
|
|
645
|
-
"https-
|
|
556
|
+
"https-key-reset": {
|
|
646
557
|
configs: [
|
|
647
558
|
{
|
|
648
559
|
description:
|
|
649
|
-
"Clear all items provided in 'https.
|
|
560
|
+
"Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key. Deprecated, use the `server.options.key` option.",
|
|
650
561
|
multiple: false,
|
|
651
|
-
path: "https.
|
|
562
|
+
path: "https.key",
|
|
652
563
|
type: "reset",
|
|
653
564
|
},
|
|
654
565
|
],
|
|
655
566
|
description:
|
|
656
|
-
"Clear all items provided in 'https.
|
|
567
|
+
"Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key. Deprecated, use the `server.options.key` option.",
|
|
657
568
|
multiple: false,
|
|
658
569
|
simpleType: "boolean",
|
|
659
570
|
},
|
|
660
|
-
"https-
|
|
571
|
+
"https-passphrase": {
|
|
661
572
|
configs: [
|
|
662
573
|
{
|
|
574
|
+
type: "string",
|
|
575
|
+
multiple: false,
|
|
663
576
|
description:
|
|
664
|
-
"
|
|
665
|
-
|
|
666
|
-
|
|
577
|
+
"Passphrase for a pfx file. Deprecated, use the `server.options.passphrase` option.",
|
|
578
|
+
path: "https.passphrase",
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
description:
|
|
582
|
+
"Passphrase for a pfx file. Deprecated, use the `server.options.passphrase` option.",
|
|
583
|
+
simpleType: "string",
|
|
584
|
+
multiple: false,
|
|
585
|
+
},
|
|
586
|
+
"https-pfx": {
|
|
587
|
+
configs: [
|
|
588
|
+
{
|
|
667
589
|
type: "string",
|
|
590
|
+
multiple: true,
|
|
591
|
+
description:
|
|
592
|
+
"Path to an SSL pfx file or content of an SSL pfx file. Deprecated, use the `server.options.pfx` option.",
|
|
593
|
+
path: "https.pfx[]",
|
|
668
594
|
},
|
|
669
595
|
],
|
|
670
596
|
description:
|
|
671
|
-
"Path to
|
|
672
|
-
multiple: true,
|
|
597
|
+
"Path to an SSL pfx file or content of an SSL pfx file. Deprecated, use the `server.options.pfx` option.",
|
|
673
598
|
simpleType: "string",
|
|
599
|
+
multiple: true,
|
|
674
600
|
},
|
|
675
|
-
"https-
|
|
601
|
+
"https-pfx-reset": {
|
|
676
602
|
configs: [
|
|
677
603
|
{
|
|
678
604
|
description:
|
|
679
|
-
"Clear all items provided in 'https.
|
|
605
|
+
"Clear all items provided in 'https.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file. Deprecated, use the `server.options.pfx` option.",
|
|
680
606
|
multiple: false,
|
|
681
|
-
path: "https.
|
|
607
|
+
path: "https.pfx",
|
|
682
608
|
type: "reset",
|
|
683
609
|
},
|
|
684
610
|
],
|
|
685
611
|
description:
|
|
686
|
-
"Clear all items provided in 'https.
|
|
612
|
+
"Clear all items provided in 'https.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file. Deprecated, use the `server.options.pfx` option.",
|
|
687
613
|
multiple: false,
|
|
688
614
|
simpleType: "boolean",
|
|
689
615
|
},
|
|
616
|
+
"https-request-cert": {
|
|
617
|
+
configs: [
|
|
618
|
+
{
|
|
619
|
+
type: "boolean",
|
|
620
|
+
multiple: false,
|
|
621
|
+
description:
|
|
622
|
+
"Request for an SSL certificate. Deprecated, use the `server.options.requestCert` option.",
|
|
623
|
+
path: "https.requestCert",
|
|
624
|
+
},
|
|
625
|
+
],
|
|
626
|
+
description:
|
|
627
|
+
"Request for an SSL certificate. Deprecated, use the `server.options.requestCert` option.",
|
|
628
|
+
negatedDescription: "Does not request for an SSL certificate.",
|
|
629
|
+
simpleType: "boolean",
|
|
630
|
+
multiple: false,
|
|
631
|
+
},
|
|
690
632
|
ipc: {
|
|
691
633
|
configs: [
|
|
692
634
|
{
|
|
@@ -764,23 +706,18 @@ module.exports = {
|
|
|
764
706
|
simpleType: "string",
|
|
765
707
|
multiple: true,
|
|
766
708
|
},
|
|
767
|
-
"open-
|
|
709
|
+
"open-app": {
|
|
768
710
|
configs: [
|
|
769
711
|
{
|
|
770
712
|
type: "string",
|
|
771
713
|
multiple: true,
|
|
772
|
-
description:
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
{
|
|
776
|
-
type: "string",
|
|
777
|
-
multiple: true,
|
|
778
|
-
description: "Opens specified page in browser.",
|
|
779
|
-
path: "open.target[]",
|
|
714
|
+
description:
|
|
715
|
+
"Open specified browser. Deprecated: please use '--open-app-name'.",
|
|
716
|
+
path: "open[].app",
|
|
780
717
|
},
|
|
781
718
|
],
|
|
782
|
-
description:
|
|
783
|
-
|
|
719
|
+
description:
|
|
720
|
+
"Open specified browser. Deprecated: please use '--open-app-name'.",
|
|
784
721
|
simpleType: "string",
|
|
785
722
|
multiple: true,
|
|
786
723
|
},
|
|
@@ -803,18 +740,20 @@ module.exports = {
|
|
|
803
740
|
simpleType: "string",
|
|
804
741
|
multiple: true,
|
|
805
742
|
},
|
|
806
|
-
"open-app": {
|
|
743
|
+
"open-app-name-reset": {
|
|
807
744
|
configs: [
|
|
808
745
|
{
|
|
809
|
-
type: "
|
|
810
|
-
multiple:
|
|
811
|
-
description:
|
|
812
|
-
|
|
746
|
+
type: "reset",
|
|
747
|
+
multiple: false,
|
|
748
|
+
description:
|
|
749
|
+
"Clear all items provided in 'open.app.name' configuration. Open specified browser.",
|
|
750
|
+
path: "open.app.name",
|
|
813
751
|
},
|
|
814
752
|
],
|
|
815
|
-
description:
|
|
816
|
-
|
|
817
|
-
|
|
753
|
+
description:
|
|
754
|
+
"Clear all items provided in 'open.app.name' configuration. Open specified browser.",
|
|
755
|
+
simpleType: "boolean",
|
|
756
|
+
multiple: false,
|
|
818
757
|
},
|
|
819
758
|
"open-reset": {
|
|
820
759
|
configs: [
|
|
@@ -831,33 +770,38 @@ module.exports = {
|
|
|
831
770
|
simpleType: "boolean",
|
|
832
771
|
multiple: false,
|
|
833
772
|
},
|
|
834
|
-
"open-target
|
|
773
|
+
"open-target": {
|
|
835
774
|
configs: [
|
|
836
775
|
{
|
|
837
|
-
type: "
|
|
838
|
-
multiple:
|
|
839
|
-
description:
|
|
840
|
-
|
|
841
|
-
|
|
776
|
+
type: "string",
|
|
777
|
+
multiple: true,
|
|
778
|
+
description: "Opens specified page in browser.",
|
|
779
|
+
path: "open[].target",
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
type: "string",
|
|
783
|
+
multiple: true,
|
|
784
|
+
description: "Opens specified page in browser.",
|
|
785
|
+
path: "open.target[]",
|
|
842
786
|
},
|
|
843
787
|
],
|
|
844
|
-
description:
|
|
845
|
-
|
|
846
|
-
simpleType: "
|
|
847
|
-
multiple:
|
|
788
|
+
description: "Opens specified page in browser.",
|
|
789
|
+
negatedDescription: "Does not open specified page in browser.",
|
|
790
|
+
simpleType: "string",
|
|
791
|
+
multiple: true,
|
|
848
792
|
},
|
|
849
|
-
"open-
|
|
793
|
+
"open-target-reset": {
|
|
850
794
|
configs: [
|
|
851
795
|
{
|
|
852
796
|
type: "reset",
|
|
853
797
|
multiple: false,
|
|
854
798
|
description:
|
|
855
|
-
"Clear all items provided in 'open.
|
|
856
|
-
path: "open.
|
|
799
|
+
"Clear all items provided in 'open.target' configuration. Opens specified page in browser.",
|
|
800
|
+
path: "open.target",
|
|
857
801
|
},
|
|
858
802
|
],
|
|
859
803
|
description:
|
|
860
|
-
"Clear all items provided in 'open.
|
|
804
|
+
"Clear all items provided in 'open.target' configuration. Opens specified page in browser.",
|
|
861
805
|
simpleType: "boolean",
|
|
862
806
|
multiple: false,
|
|
863
807
|
},
|
|
@@ -921,14 +865,14 @@ module.exports = {
|
|
|
921
865
|
configs: [
|
|
922
866
|
{
|
|
923
867
|
description:
|
|
924
|
-
"Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
868
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
925
869
|
multiple: true,
|
|
926
870
|
path: "server.options.cacert[]",
|
|
927
871
|
type: "string",
|
|
928
872
|
},
|
|
929
873
|
],
|
|
930
874
|
description:
|
|
931
|
-
"Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
875
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
932
876
|
multiple: true,
|
|
933
877
|
simpleType: "string",
|
|
934
878
|
},
|
|
@@ -936,14 +880,14 @@ module.exports = {
|
|
|
936
880
|
configs: [
|
|
937
881
|
{
|
|
938
882
|
description:
|
|
939
|
-
"Clear all items provided in 'server.options.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
883
|
+
"Clear all items provided in 'server.options.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
940
884
|
multiple: false,
|
|
941
885
|
path: "server.options.cacert",
|
|
942
886
|
type: "reset",
|
|
943
887
|
},
|
|
944
888
|
],
|
|
945
889
|
description:
|
|
946
|
-
"Clear all items provided in 'server.options.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
890
|
+
"Clear all items provided in 'server.options.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, use the `server.options.ca` option.",
|
|
947
891
|
multiple: false,
|
|
948
892
|
simpleType: "boolean",
|
|
949
893
|
},
|
|
@@ -1159,6 +1103,36 @@ module.exports = {
|
|
|
1159
1103
|
simpleType: "string",
|
|
1160
1104
|
multiple: true,
|
|
1161
1105
|
},
|
|
1106
|
+
"static-public-path-reset": {
|
|
1107
|
+
configs: [
|
|
1108
|
+
{
|
|
1109
|
+
type: "reset",
|
|
1110
|
+
multiple: false,
|
|
1111
|
+
description:
|
|
1112
|
+
"Clear all items provided in 'static.publicPath' configuration. The static files will be available in the browser under this public path.",
|
|
1113
|
+
path: "static.publicPath",
|
|
1114
|
+
},
|
|
1115
|
+
],
|
|
1116
|
+
description:
|
|
1117
|
+
"Clear all items provided in 'static.publicPath' configuration. The static files will be available in the browser under this public path.",
|
|
1118
|
+
simpleType: "boolean",
|
|
1119
|
+
multiple: false,
|
|
1120
|
+
},
|
|
1121
|
+
"static-reset": {
|
|
1122
|
+
configs: [
|
|
1123
|
+
{
|
|
1124
|
+
type: "reset",
|
|
1125
|
+
multiple: false,
|
|
1126
|
+
description:
|
|
1127
|
+
"Clear all items provided in 'static' configuration. Allows to configure options for serving static files from directory (by default 'public' directory).",
|
|
1128
|
+
path: "static",
|
|
1129
|
+
},
|
|
1130
|
+
],
|
|
1131
|
+
description:
|
|
1132
|
+
"Clear all items provided in 'static' configuration. Allows to configure options for serving static files from directory (by default 'public' directory).",
|
|
1133
|
+
simpleType: "boolean",
|
|
1134
|
+
multiple: false,
|
|
1135
|
+
},
|
|
1162
1136
|
"static-serve-index": {
|
|
1163
1137
|
configs: [
|
|
1164
1138
|
{
|
|
@@ -1189,64 +1163,88 @@ module.exports = {
|
|
|
1189
1163
|
simpleType: "boolean",
|
|
1190
1164
|
multiple: true,
|
|
1191
1165
|
},
|
|
1192
|
-
"
|
|
1166
|
+
"watch-files": {
|
|
1193
1167
|
configs: [
|
|
1194
1168
|
{
|
|
1195
|
-
type: "
|
|
1196
|
-
multiple:
|
|
1169
|
+
type: "string",
|
|
1170
|
+
multiple: true,
|
|
1197
1171
|
description:
|
|
1198
|
-
"
|
|
1199
|
-
path: "
|
|
1172
|
+
"Allows to configure list of globs/directories/files to watch for file changes.",
|
|
1173
|
+
path: "watchFiles[]",
|
|
1200
1174
|
},
|
|
1201
1175
|
],
|
|
1202
1176
|
description:
|
|
1203
|
-
"
|
|
1204
|
-
simpleType: "
|
|
1205
|
-
multiple:
|
|
1177
|
+
"Allows to configure list of globs/directories/files to watch for file changes.",
|
|
1178
|
+
simpleType: "string",
|
|
1179
|
+
multiple: true,
|
|
1206
1180
|
},
|
|
1207
|
-
"
|
|
1181
|
+
"watch-files-reset": {
|
|
1208
1182
|
configs: [
|
|
1209
1183
|
{
|
|
1210
1184
|
type: "reset",
|
|
1211
1185
|
multiple: false,
|
|
1212
1186
|
description:
|
|
1213
|
-
"Clear all items provided in '
|
|
1214
|
-
path: "
|
|
1187
|
+
"Clear all items provided in 'watchFiles' configuration. Allows to configure list of globs/directories/files to watch for file changes.",
|
|
1188
|
+
path: "watchFiles",
|
|
1215
1189
|
},
|
|
1216
1190
|
],
|
|
1217
1191
|
description:
|
|
1218
|
-
"Clear all items provided in '
|
|
1192
|
+
"Clear all items provided in 'watchFiles' configuration. Allows to configure list of globs/directories/files to watch for file changes.",
|
|
1219
1193
|
simpleType: "boolean",
|
|
1220
1194
|
multiple: false,
|
|
1221
1195
|
},
|
|
1222
|
-
"
|
|
1196
|
+
"web-socket-server": {
|
|
1223
1197
|
configs: [
|
|
1224
1198
|
{
|
|
1225
|
-
type: "string",
|
|
1226
|
-
multiple: true,
|
|
1227
1199
|
description:
|
|
1228
|
-
"
|
|
1229
|
-
|
|
1200
|
+
"Deprecated: please use '--web-socket-server-type' option.",
|
|
1201
|
+
multiple: false,
|
|
1202
|
+
path: "webSocketServer",
|
|
1203
|
+
type: "enum",
|
|
1204
|
+
values: [false],
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
description:
|
|
1208
|
+
"Deprecated: please use '--web-socket-server-type' option.",
|
|
1209
|
+
multiple: false,
|
|
1210
|
+
path: "webSocketServer",
|
|
1211
|
+
type: "enum",
|
|
1212
|
+
values: ["sockjs", "ws"],
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
description:
|
|
1216
|
+
"Allows to set web socket server and options (by default 'ws').",
|
|
1217
|
+
multiple: false,
|
|
1218
|
+
path: "webSocketServer",
|
|
1219
|
+
type: "string",
|
|
1230
1220
|
},
|
|
1231
1221
|
],
|
|
1232
1222
|
description:
|
|
1233
|
-
"Allows to
|
|
1223
|
+
"Deprecated: please use '--web-socket-server-type' option. Allows to set web socket server and options (by default 'ws').",
|
|
1234
1224
|
simpleType: "string",
|
|
1235
|
-
multiple:
|
|
1225
|
+
multiple: false,
|
|
1236
1226
|
},
|
|
1237
|
-
"
|
|
1227
|
+
"web-socket-server-type": {
|
|
1238
1228
|
configs: [
|
|
1239
1229
|
{
|
|
1240
|
-
|
|
1230
|
+
description:
|
|
1231
|
+
"Allows to set web socket server and options (by default 'ws').",
|
|
1241
1232
|
multiple: false,
|
|
1233
|
+
path: "webSocketServer.type",
|
|
1234
|
+
type: "enum",
|
|
1235
|
+
values: ["sockjs", "ws"],
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1242
1238
|
description:
|
|
1243
|
-
"
|
|
1244
|
-
|
|
1239
|
+
"Allows to set web socket server and options (by default 'ws').",
|
|
1240
|
+
multiple: false,
|
|
1241
|
+
path: "webSocketServer.type",
|
|
1242
|
+
type: "string",
|
|
1245
1243
|
},
|
|
1246
1244
|
],
|
|
1247
1245
|
description:
|
|
1248
|
-
"
|
|
1249
|
-
simpleType: "
|
|
1246
|
+
"Allows to set web socket server and options (by default 'ws').",
|
|
1247
|
+
simpleType: "string",
|
|
1250
1248
|
multiple: false,
|
|
1251
1249
|
},
|
|
1252
1250
|
};
|