-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
options.json
614 lines (614 loc) · 17.3 KB
/
options.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
{
"type": "object",
"definitions": {
"StaticObject": {
"type": "object",
"additionalProperties": false,
"properties": {
"directory": {
"type": "string",
"minLength": 1,
"description": "Directory for static contents."
},
"staticOptions": {
"type": "object",
"additionalProperties": true
},
"publicPath": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1
},
{
"type": "string",
"minLength": 1
}
],
"description": "The bundled files will be available in the browser under this path."
},
"serveIndex": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "object",
"additionalProperties": true
}
],
"description": "Tells dev-server to use serveIndex middleware when enabled."
},
"watch": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "object",
"description": "options for watch, description available at https://github.com/paulmillr/chokidar#api"
}
],
"description": "Watch for files in static content directory."
}
}
},
"StaticString": {
"type": "string",
"minLength": 1
},
"OpenBoolean": {
"type": "boolean"
},
"OpenString": {
"type": "string",
"minLength": 1
},
"OpenObject": {
"type": "object",
"additionalProperties": false,
"properties": {
"target": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1
},
{
"type": "boolean"
},
{
"type": "string",
"minLength": 1
}
],
"description": "Open specified route in browser."
},
"app": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1
},
{
"type": "string",
"minLength": 1
}
]
},
"arguments": {
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1
}
}
},
{
"type": "string",
"minLength": 1
}
],
"description": "Open specified browser."
}
}
},
"WatchFilesString": {
"type": "string",
"minLength": 1
},
"WatchFilesObject": {
"type": "object",
"properties": {
"paths": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
{
"type": "string",
"minLength": 1
}
]
},
"options": {
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
},
"WebSocketServerEnum": {
"enum": ["sockjs", "ws"]
},
"WebSocketServerString": {
"type": "string",
"minLength": 1
},
"WebSocketServerFunction": {
"instanceof": "Function"
},
"WebSocketServerObject": {
"type": "object",
"properties": {
"type": {
"anyOf": [
{
"$ref": "#/definitions/WebSocketServerEnum"
},
{
"$ref": "#/definitions/WebSocketServerString"
},
{
"$ref": "#/definitions/WebSocketServerFunction"
}
]
},
"options": {
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
},
"ClientTransportEnum": {
"enum": ["sockjs", "ws"]
},
"ClientTransportString": {
"type": "string",
"minLength": 1
}
},
"properties": {
"bonjour": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "object",
"description": "Options for bonjour, description available at https://github.com/watson/bonjour#initializing"
}
],
"description": "Broadcasts the server via ZeroConf networking on start. https://webpack.js.org/configuration/dev-server/#devserverbonjour"
},
"client": {
"type": "object",
"properties": {
"transport": {
"anyOf": [
{
"$ref": "#/definitions/ClientTransportEnum"
},
{
"$ref": "#/definitions/ClientTransportString"
}
],
"description": "Allows to set custom transport to communicate with server."
},
"logging": {
"enum": ["none", "error", "warn", "info", "log", "verbose"],
"decription": "Log level in the browser."
},
"progress": {
"type": "boolean",
"description": "Print compilation progress in percentage in the browser."
},
"overlay": {
"anyOf": [
{
"type": "boolean",
"description": "Show a full-screen overlay in the browser when there are compiler errors or warnings."
},
{
"type": "object",
"properties": {
"errors": {
"type": "boolean",
"description": "Show a full-screen overlay in the browser when there are compiler errors."
},
"warnings": {
"type": "boolean",
"description": "Show a full-screen overlay in the browser when there are compiler warnings."
}
}
}
]
},
"needClientEntry": {
"anyOf": [
{
"type": "boolean"
},
{
"instanceof": "Function"
}
],
"description": "Tells devServer to inject a client entry."
},
"hotEntry": {
"anyOf": [
{
"type": "boolean"
},
{
"instanceof": "Function"
}
],
"description": "Tells devServer to inject a Hot Module Replacement entry."
},
"webSocketURL": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"host": {
"type": "string",
"minLength": 1,
"description": "Tells clients connected to devServer to use the provided host."
},
"port": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
],
"description": "Tells clients connected to devServer to use the provided port."
},
"path": {
"type": "string",
"description": "Tells clients connected to devServer to use the provided path to connect."
}
}
}
],
"description": "When using dev server and you're proxying dev-server, the client script does not always know where to connect to."
}
},
"description": "Specifies client properties. https://webpack.js.org/configuration/dev-server/#devserverclient",
"additionalProperties": false
},
"webSocketServer": {
"anyOf": [
{
"$ref": "#/definitions/WebSocketServerEnum"
},
{
"$ref": "#/definitions/WebSocketServerString"
},
{
"$ref": "#/definitions/WebSocketServerFunction"
},
{
"$ref": "#/definitions/WebSocketServerObject"
}
],
"description": "Allows to set web socket server and options."
},
"compress": {
"type": "boolean",
"description": "Enable gzip compression for everything served. https://webpack.js.org/configuration/dev-server/#devservercompress"
},
"devMiddleware": {
"type": "object",
"description": "Provide options to webpack-dev-middleware which handles webpack assets. https://webpack.js.org/configuration/dev-server/#devserverdevmiddleware"
},
"allowedHosts": {
"anyOf": [
{
"enum": ["auto", "all"]
},
{
"type": "string",
"minLength": 1
},
{
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1
}
],
"description": "Defines routes which are enabled by default, on by default and allows localhost/value from the 'host' option/value from the 'client.webSocketURL' option. https://webpack.js.org/configuration/dev-server/#devserverallowedhosts"
},
"headers": {
"anyOf": [
{
"type": "object"
},
{
"instanceof": "Function"
}
],
"description": "Adds headers to all responses. https://webpack.js.org/configuration/dev-server/#devserverheaders"
},
"historyApiFallback": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "object"
}
],
"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"
},
"host": {
"type": "string",
"minLength": 1,
"description": "Specify a host to use. If you want your server to be accessible externally. https://webpack.js.org/configuration/dev-server/#devserverhost"
},
"hot": {
"anyOf": [
{
"type": "boolean"
},
{
"enum": ["only"]
}
],
"description": "Enable webpack's Hot Module Replacement feature. https://webpack.js.org/configuration/dev-server/#devserverhot"
},
"http2": {
"type": "boolean",
"description": "Serve over HTTP/2 using spdy. https://webpack.js.org/configuration/dev-server/#devserverhttp2"
},
"https": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"passphrase": {
"type": "string",
"description": "Passphrase for a pfx file."
},
"requestCert": {
"type": "boolean",
"description": "Request for an SSL certificate."
},
"cacert": {
"anyOf": [
{
"type": "string"
},
{
"instanceof": "Buffer"
}
],
"description": "Path to an SSL CA certificate."
},
"key": {
"anyOf": [
{
"type": "string"
},
{
"instanceof": "Buffer"
}
],
"description": "Path to an SSL key."
},
"pfx": {
"anyOf": [
{
"type": "string"
},
{
"instanceof": "Buffer"
}
],
"description": "Path to an SSL pfx file."
},
"cert": {
"anyOf": [
{
"type": "string"
},
{
"instanceof": "Buffer"
}
],
"description": "Path to an SSL certificate."
}
}
}
],
"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"
},
"liveReload": {
"type": "boolean",
"description": "By default, the dev-server will reload/refresh the page when file changes are detected. https://webpack.js.org/configuration/dev-server/#devserverlivereload"
},
"onAfterSetupMiddleware": {
"instanceof": "Function",
"description": "Provides the ability to execute custom middleware after all other middleware internally within the server. https://webpack.js.org/configuration/dev-server/#devserverafter"
},
"onBeforeSetupMiddleware": {
"instanceof": "Function",
"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"
},
"onListening": {
"instanceof": "Function",
"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"
},
"open": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/OpenString"
},
{
"$ref": "#/definitions/OpenObject"
}
]
},
"minItems": 1
},
{
"$ref": "#/definitions/OpenBoolean"
},
{
"$ref": "#/definitions/OpenString"
},
{
"$ref": "#/definitions/OpenObject"
}
],
"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"
},
"port": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
},
{
"enum": ["auto"]
}
],
"description": "Specify a port number to listen for requests on. https://webpack.js.org/configuration/dev-server/#devserverport"
},
"proxy": {
"anyOf": [
{
"type": "object"
},
{
"type": "array",
"items": {
"anyOf": [
{
"type": "object"
},
{
"instanceof": "Function"
}
]
},
"minItems": 1
}
],
"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"
},
"setupExitSignals": {
"type": "boolean",
"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"
},
"static": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/StaticString"
},
{
"$ref": "#/definitions/StaticObject"
}
]
},
"minItems": 1
},
{
"type": "boolean"
},
{
"$ref": "#/definitions/StaticString"
},
{
"$ref": "#/definitions/StaticObject"
}
],
"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"
},
"watchFiles": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/WatchFilesString"
},
{
"$ref": "#/definitions/WatchFilesObject"
}
]
}
},
{
"$ref": "#/definitions/WatchFilesString"
},
{
"$ref": "#/definitions/WatchFilesObject"
}
],
"description": "List of files to watch for file changes and serve. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles"
}
},
"additionalProperties": false
}