1
|
{
|
2
|
"type": "object",
|
3
|
"properties": {
|
4
|
"after": {
|
5
|
"instanceof": "Function"
|
6
|
},
|
7
|
"allowedHosts": {
|
8
|
"type": "array",
|
9
|
"items": {
|
10
|
"type": "string"
|
11
|
}
|
12
|
},
|
13
|
"before": {
|
14
|
"instanceof": "Function"
|
15
|
},
|
16
|
"bonjour": {
|
17
|
"type": "boolean"
|
18
|
},
|
19
|
"ca": {
|
20
|
"anyOf": [
|
21
|
{
|
22
|
"type": "string"
|
23
|
},
|
24
|
{
|
25
|
"instanceof": "Buffer"
|
26
|
}
|
27
|
]
|
28
|
},
|
29
|
"cert": {
|
30
|
"anyOf": [
|
31
|
{
|
32
|
"type": "string"
|
33
|
},
|
34
|
{
|
35
|
"instanceof": "Buffer"
|
36
|
}
|
37
|
]
|
38
|
},
|
39
|
"clientLogLevel": {
|
40
|
"enum": [
|
41
|
"info",
|
42
|
"warn",
|
43
|
"error",
|
44
|
"debug",
|
45
|
"trace",
|
46
|
"silent",
|
47
|
"none",
|
48
|
"warning"
|
49
|
]
|
50
|
},
|
51
|
"compress": {
|
52
|
"type": "boolean"
|
53
|
},
|
54
|
"contentBasePublicPath": {
|
55
|
"type": "string"
|
56
|
},
|
57
|
"contentBase": {
|
58
|
"anyOf": [
|
59
|
{
|
60
|
"enum": [false]
|
61
|
},
|
62
|
{
|
63
|
"type": "number"
|
64
|
},
|
65
|
{
|
66
|
"type": "string"
|
67
|
},
|
68
|
{
|
69
|
"type": "array",
|
70
|
"items": {
|
71
|
"type": "string"
|
72
|
},
|
73
|
"minItems": 1
|
74
|
}
|
75
|
]
|
76
|
},
|
77
|
"disableHostCheck": {
|
78
|
"type": "boolean"
|
79
|
},
|
80
|
"features": {
|
81
|
"type": "array",
|
82
|
"items": {
|
83
|
"type": "string"
|
84
|
}
|
85
|
},
|
86
|
"filename": {
|
87
|
"anyOf": [
|
88
|
{
|
89
|
"type": "string"
|
90
|
},
|
91
|
{
|
92
|
"instanceof": "RegExp"
|
93
|
},
|
94
|
{
|
95
|
"instanceof": "Function"
|
96
|
}
|
97
|
]
|
98
|
},
|
99
|
"fs": {
|
100
|
"type": "object"
|
101
|
},
|
102
|
"headers": {
|
103
|
"type": "object"
|
104
|
},
|
105
|
"historyApiFallback": {
|
106
|
"anyOf": [
|
107
|
{
|
108
|
"type": "boolean"
|
109
|
},
|
110
|
{
|
111
|
"type": "object"
|
112
|
}
|
113
|
]
|
114
|
},
|
115
|
"host": {
|
116
|
"anyOf": [
|
117
|
{
|
118
|
"type": "string"
|
119
|
},
|
120
|
{
|
121
|
"type": "null"
|
122
|
}
|
123
|
]
|
124
|
},
|
125
|
"hot": {
|
126
|
"type": "boolean"
|
127
|
},
|
128
|
"hotOnly": {
|
129
|
"type": "boolean"
|
130
|
},
|
131
|
"http2": {
|
132
|
"type": "boolean"
|
133
|
},
|
134
|
"https": {
|
135
|
"anyOf": [
|
136
|
{
|
137
|
"type": "object"
|
138
|
},
|
139
|
{
|
140
|
"type": "boolean"
|
141
|
}
|
142
|
]
|
143
|
},
|
144
|
"index": {
|
145
|
"type": "string"
|
146
|
},
|
147
|
"injectClient": {
|
148
|
"anyOf": [
|
149
|
{
|
150
|
"type": "boolean"
|
151
|
},
|
152
|
{
|
153
|
"instanceof": "Function"
|
154
|
}
|
155
|
]
|
156
|
},
|
157
|
"injectHot": {
|
158
|
"anyOf": [
|
159
|
{
|
160
|
"type": "boolean"
|
161
|
},
|
162
|
{
|
163
|
"instanceof": "Function"
|
164
|
}
|
165
|
]
|
166
|
},
|
167
|
"inline": {
|
168
|
"type": "boolean"
|
169
|
},
|
170
|
"key": {
|
171
|
"anyOf": [
|
172
|
{
|
173
|
"type": "string"
|
174
|
},
|
175
|
{
|
176
|
"instanceof": "Buffer"
|
177
|
}
|
178
|
]
|
179
|
},
|
180
|
"lazy": {
|
181
|
"type": "boolean"
|
182
|
},
|
183
|
"liveReload": {
|
184
|
"type": "boolean"
|
185
|
},
|
186
|
"log": {
|
187
|
"instanceof": "Function"
|
188
|
},
|
189
|
"logLevel": {
|
190
|
"enum": ["info", "warn", "error", "debug", "trace", "silent"]
|
191
|
},
|
192
|
"logTime": {
|
193
|
"type": "boolean"
|
194
|
},
|
195
|
"mimeTypes": {
|
196
|
"type": "object"
|
197
|
},
|
198
|
"noInfo": {
|
199
|
"type": "boolean"
|
200
|
},
|
201
|
"onListening": {
|
202
|
"instanceof": "Function"
|
203
|
},
|
204
|
"open": {
|
205
|
"anyOf": [
|
206
|
{
|
207
|
"type": "string"
|
208
|
},
|
209
|
{
|
210
|
"type": "boolean"
|
211
|
}
|
212
|
]
|
213
|
},
|
214
|
"openPage": {
|
215
|
"anyOf": [
|
216
|
{
|
217
|
"type": "string"
|
218
|
},
|
219
|
{
|
220
|
"type": "array",
|
221
|
"items": {
|
222
|
"type": "string"
|
223
|
},
|
224
|
"minItems": 1
|
225
|
}
|
226
|
]
|
227
|
},
|
228
|
"overlay": {
|
229
|
"anyOf": [
|
230
|
{
|
231
|
"type": "boolean"
|
232
|
},
|
233
|
{
|
234
|
"type": "object",
|
235
|
"properties": {
|
236
|
"errors": {
|
237
|
"type": "boolean"
|
238
|
},
|
239
|
"warnings": {
|
240
|
"type": "boolean"
|
241
|
}
|
242
|
}
|
243
|
}
|
244
|
]
|
245
|
},
|
246
|
"pfx": {
|
247
|
"anyOf": [
|
248
|
{
|
249
|
"type": "string"
|
250
|
},
|
251
|
{
|
252
|
"instanceof": "Buffer"
|
253
|
}
|
254
|
]
|
255
|
},
|
256
|
"pfxPassphrase": {
|
257
|
"type": "string"
|
258
|
},
|
259
|
"port": {
|
260
|
"anyOf": [
|
261
|
{
|
262
|
"type": "number"
|
263
|
},
|
264
|
{
|
265
|
"type": "string"
|
266
|
},
|
267
|
{
|
268
|
"type": "null"
|
269
|
}
|
270
|
]
|
271
|
},
|
272
|
"profile": {
|
273
|
"type": "boolean"
|
274
|
},
|
275
|
"progress": {
|
276
|
"type": "boolean"
|
277
|
},
|
278
|
"proxy": {
|
279
|
"anyOf": [
|
280
|
{
|
281
|
"type": "object"
|
282
|
},
|
283
|
{
|
284
|
"type": "array",
|
285
|
"items": {
|
286
|
"anyOf": [
|
287
|
{
|
288
|
"type": "object"
|
289
|
},
|
290
|
{
|
291
|
"instanceof": "Function"
|
292
|
}
|
293
|
]
|
294
|
},
|
295
|
"minItems": 1
|
296
|
}
|
297
|
]
|
298
|
},
|
299
|
"public": {
|
300
|
"type": "string"
|
301
|
},
|
302
|
"publicPath": {
|
303
|
"type": "string"
|
304
|
},
|
305
|
"quiet": {
|
306
|
"type": "boolean"
|
307
|
},
|
308
|
"reporter": {
|
309
|
"instanceof": "Function"
|
310
|
},
|
311
|
"requestCert": {
|
312
|
"type": "boolean"
|
313
|
},
|
314
|
"serveIndex": {
|
315
|
"type": "boolean"
|
316
|
},
|
317
|
"serverSideRender": {
|
318
|
"type": "boolean"
|
319
|
},
|
320
|
"setup": {
|
321
|
"instanceof": "Function"
|
322
|
},
|
323
|
"sockHost": {
|
324
|
"type": "string"
|
325
|
},
|
326
|
"sockPath": {
|
327
|
"type": "string"
|
328
|
},
|
329
|
"sockPort": {
|
330
|
"anyOf": [
|
331
|
{
|
332
|
"type": "number"
|
333
|
},
|
334
|
{
|
335
|
"type": "string"
|
336
|
},
|
337
|
{
|
338
|
"type": "null"
|
339
|
}
|
340
|
]
|
341
|
},
|
342
|
"socket": {
|
343
|
"type": "string"
|
344
|
},
|
345
|
"staticOptions": {
|
346
|
"type": "object"
|
347
|
},
|
348
|
"stats": {
|
349
|
"anyOf": [
|
350
|
{
|
351
|
"type": "object"
|
352
|
},
|
353
|
{
|
354
|
"type": "boolean"
|
355
|
},
|
356
|
{
|
357
|
"enum": [
|
358
|
"none",
|
359
|
"errors-only",
|
360
|
"errors-warnings",
|
361
|
"minimal",
|
362
|
"normal",
|
363
|
"verbose"
|
364
|
]
|
365
|
}
|
366
|
]
|
367
|
},
|
368
|
"transportMode": {
|
369
|
"anyOf": [
|
370
|
{
|
371
|
"type": "object",
|
372
|
"properties": {
|
373
|
"client": {
|
374
|
"type": "string"
|
375
|
},
|
376
|
"server": {
|
377
|
"anyOf": [
|
378
|
{
|
379
|
"type": "string"
|
380
|
},
|
381
|
{
|
382
|
"instanceof": "Function"
|
383
|
}
|
384
|
]
|
385
|
}
|
386
|
},
|
387
|
"additionalProperties": false
|
388
|
},
|
389
|
{
|
390
|
"enum": ["sockjs", "ws"]
|
391
|
}
|
392
|
]
|
393
|
},
|
394
|
"useLocalIp": {
|
395
|
"type": "boolean"
|
396
|
},
|
397
|
"warn": {
|
398
|
"instanceof": "Function"
|
399
|
},
|
400
|
"watchContentBase": {
|
401
|
"type": "boolean"
|
402
|
},
|
403
|
"watchOptions": {
|
404
|
"type": "object"
|
405
|
},
|
406
|
"writeToDisk": {
|
407
|
"anyOf": [
|
408
|
{
|
409
|
"type": "boolean"
|
410
|
},
|
411
|
{
|
412
|
"instanceof": "Function"
|
413
|
}
|
414
|
]
|
415
|
}
|
416
|
},
|
417
|
"errorMessage": {
|
418
|
"properties": {
|
419
|
"after": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverafter)",
|
420
|
"allowedHosts": "should be {Array} (https://webpack.js.org/configuration/dev-server/#devserverallowedhosts)",
|
421
|
"before": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverbefore)",
|
422
|
"bonjour": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverbonjour)",
|
423
|
"ca": "should be {String|Buffer}",
|
424
|
"cert": "should be {String|Buffer}",
|
425
|
"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)",
|
426
|
"compress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devservercompress)",
|
427
|
"contentBase": "should be {Number|String|Array} (https://webpack.js.org/configuration/dev-server/#devservercontentbase)",
|
428
|
"disableHostCheck": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck)",
|
429
|
"features": "should be {Array}",
|
430
|
"filename": "should be {String|RegExp|Function} (https://webpack.js.org/configuration/dev-server/#devserverfilename-)",
|
431
|
"fs": "should be {Object} (https://github.com/webpack/webpack-dev-middleware#fs)",
|
432
|
"headers": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverheaders-)",
|
433
|
"historyApiFallback": "should be {Boolean|Object} (https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback)",
|
434
|
"host": "should be {String|Null} (https://webpack.js.org/configuration/dev-server/#devserverhost)",
|
435
|
"hot": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhot)",
|
436
|
"hotOnly": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhotonly)",
|
437
|
"http2": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhttp2)",
|
438
|
"https": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhttps)",
|
439
|
"index": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverindex)",
|
440
|
"injectClient": "should be {Boolean|Function} (https://webpack.js.org/configuration/dev-server/#devserverinjectclient)",
|
441
|
"injectHot": "should be {Boolean|Function} (https://webpack.js.org/configuration/dev-server/#devserverinjecthot)",
|
442
|
"inline": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverinline)",
|
443
|
"key": "should be {String|Buffer}",
|
444
|
"lazy": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverlazy-)",
|
445
|
"liveReload": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverlivereload-)",
|
446
|
"log": "should be {Function}",
|
447
|
"logLevel": "should be {String} and equal to one of the allowed values\n\n [ 'info', 'warn', 'error', 'debug', 'trace', 'silent' ]\n\n (https://github.com/webpack/webpack-dev-middleware#loglevel)",
|
448
|
"logTime": "should be {Boolean} (https://github.com/webpack/webpack-dev-middleware#logtime)",
|
449
|
"mimeTypes": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devservermimetypes-)",
|
450
|
"noInfo": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devservernoinfo-)",
|
451
|
"onListening": "should be {Function} (https://webpack.js.org/configuration/dev-server/#onlistening)",
|
452
|
"open": "should be {String|Boolean} (https://webpack.js.org/configuration/dev-server/#devserveropen)",
|
453
|
"openPage": "should be {String|Array} (https://webpack.js.org/configuration/dev-server/#devserveropenpage)",
|
454
|
"overlay": "should be {Boolean|Object} (https://webpack.js.org/configuration/dev-server/#devserveroverlay)",
|
455
|
"pfx": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserverpfx)",
|
456
|
"pfxPassphrase": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpfxpassphrase)",
|
457
|
"port": "should be {Number|String|Null} (https://webpack.js.org/configuration/dev-server/#devserverport)",
|
458
|
"profile": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverprofile)",
|
459
|
"progress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverprogress---cli-only)",
|
460
|
"proxy": "should be {Object|Array} (https://webpack.js.org/configuration/dev-server/#devserverproxy)",
|
461
|
"public": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpublic)",
|
462
|
"publicPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpublicpath-)",
|
463
|
"quiet": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverquiet-)",
|
464
|
"reporter": "should be {Function} (https://github.com/webpack/webpack-dev-middleware#reporter)",
|
465
|
"requestCert": "should be {Boolean}",
|
466
|
"contentBasePublicPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devservercontentbasepublicpath)",
|
467
|
"serveIndex": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverserveindex)",
|
468
|
"serverSideRender": "should be {Boolean} (https://github.com/webpack/webpack-dev-middleware#serversiderender)",
|
469
|
"setup": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserversetup)",
|
470
|
"sockHost": "should be {String|Null} (https://webpack.js.org/configuration/dev-server/#devserversockhost)",
|
471
|
"sockPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserversockpath)",
|
472
|
"sockPort": "should be {Number|String|Null} (https://webpack.js.org/configuration/dev-server/#devserversockport)",
|
473
|
"socket": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserversocket)",
|
474
|
"staticOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverstaticoptions)",
|
475
|
"stats": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserverstats-)",
|
476
|
"transportMode": "should be {String|Object} (https://webpack.js.org/configuration/dev-server/#devservertransportmode)",
|
477
|
"useLocalIp": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserveruselocalip)",
|
478
|
"warn": "should be {Function}",
|
479
|
"watchContentBase": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverwatchcontentbase)",
|
480
|
"watchOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverwatchoptions-)",
|
481
|
"writeToDisk": "should be {Boolean|Function} (https://webpack.js.org/configuration/dev-server/#devserverwritetodisk-)"
|
482
|
}
|
483
|
},
|
484
|
"additionalProperties": false
|
485
|
}
|