1 | {
|
2 | "definitions": {
|
3 | "ArrayOfStringOrStringArrayValues": {
|
4 | "type": "array",
|
5 | "items": {
|
6 | "description": "string or array of strings",
|
7 | "anyOf": [
|
8 | {
|
9 | "type": "string",
|
10 | "minLength": 1
|
11 | },
|
12 | {
|
13 | "type": "array",
|
14 | "items": {
|
15 | "description": "A non-empty string",
|
16 | "type": "string",
|
17 | "minLength": 1
|
18 | }
|
19 | }
|
20 | ]
|
21 | }
|
22 | },
|
23 | "ArrayOfStringValues": {
|
24 | "type": "array",
|
25 | "items": {
|
26 | "description": "A non-empty string",
|
27 | "type": "string",
|
28 | "minLength": 1
|
29 | }
|
30 | },
|
31 | "Entry": {
|
32 | "anyOf": [
|
33 | {
|
34 | "$ref": "#/definitions/EntryDynamic"
|
35 | },
|
36 | {
|
37 | "$ref": "#/definitions/EntryStatic"
|
38 | }
|
39 | ]
|
40 | },
|
41 | "EntryDynamic": {
|
42 | "description": "A Function returning an entry object, an entry string, an entry array or a promise to these things.",
|
43 | "instanceof": "Function",
|
44 | "tsType": "(() => EntryStatic | Promise<EntryStatic>)"
|
45 | },
|
46 | "EntryItem": {
|
47 | "oneOf": [
|
48 | {
|
49 | "description": "An entry point without name. The string is resolved to a module which is loaded upon startup.",
|
50 | "type": "string",
|
51 | "minLength": 1
|
52 | },
|
53 | {
|
54 | "description": "An entry point without name. All modules are loaded upon startup. The last one is exported.",
|
55 | "anyOf": [
|
56 | {
|
57 | "$ref": "#/definitions/NonEmptyArrayOfUniqueStringValues"
|
58 | }
|
59 | ]
|
60 | }
|
61 | ]
|
62 | },
|
63 | "EntryObject": {
|
64 | "description": "Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.",
|
65 | "type": "object",
|
66 | "additionalProperties": {
|
67 | "description": "An entry point with name",
|
68 | "oneOf": [
|
69 | {
|
70 | "description": "The string is resolved to a module which is loaded upon startup.",
|
71 | "type": "string",
|
72 | "minLength": 1
|
73 | },
|
74 | {
|
75 | "description": "All modules are loaded upon startup. The last one is exported.",
|
76 | "anyOf": [
|
77 | {
|
78 | "$ref": "#/definitions/NonEmptyArrayOfUniqueStringValues"
|
79 | }
|
80 | ]
|
81 | }
|
82 | ]
|
83 | },
|
84 | "minProperties": 1
|
85 | },
|
86 | "EntryStatic": {
|
87 | "oneOf": [
|
88 | {
|
89 | "$ref": "#/definitions/EntryObject"
|
90 | },
|
91 | {
|
92 | "$ref": "#/definitions/EntryItem"
|
93 | }
|
94 | ]
|
95 | },
|
96 | "ExternalItem": {
|
97 | "anyOf": [
|
98 | {
|
99 | "description": "An exact matched dependency becomes external. The same string is used as external dependency.",
|
100 | "type": "string"
|
101 | },
|
102 | {
|
103 | "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.",
|
104 | "type": "object",
|
105 | "additionalProperties": {
|
106 | "description": "The dependency used for the external",
|
107 | "anyOf": [
|
108 | {
|
109 | "type": "string"
|
110 | },
|
111 | {
|
112 | "type": "object"
|
113 | },
|
114 | {
|
115 | "$ref": "#/definitions/ArrayOfStringValues"
|
116 | },
|
117 | {
|
118 | "type": "boolean"
|
119 | }
|
120 | ]
|
121 | }
|
122 | },
|
123 | {
|
124 | "description": "Every matched dependency becomes external.",
|
125 | "instanceof": "RegExp",
|
126 | "tsType": "RegExp"
|
127 | }
|
128 | ]
|
129 | },
|
130 | "Externals": {
|
131 | "anyOf": [
|
132 | {
|
133 | "description": "`function(context, request, callback(err, result))` The function is called on each dependency.",
|
134 | "instanceof": "Function",
|
135 | "tsType": "((context: string, request: string, callback: (err?: Error, result?: string) => void) => void)"
|
136 | },
|
137 | {
|
138 | "$ref": "#/definitions/ExternalItem"
|
139 | },
|
140 | {
|
141 | "type": "array",
|
142 | "items": {
|
143 | "description": "External configuration",
|
144 | "anyOf": [
|
145 | {
|
146 | "description": "`function(context, request, callback(err, result))` The function is called on each dependency.",
|
147 | "instanceof": "Function",
|
148 | "tsType": "((context: string, request: string, callback: (err?: Error, result?: string) => void) => void)"
|
149 | },
|
150 | {
|
151 | "$ref": "#/definitions/ExternalItem"
|
152 | }
|
153 | ]
|
154 | }
|
155 | }
|
156 | ]
|
157 | },
|
158 | "FilterItemTypes": {
|
159 | "anyOf": [
|
160 | {
|
161 | "instanceof": "RegExp",
|
162 | "tsType": "RegExp"
|
163 | },
|
164 | {
|
165 | "type": "string"
|
166 | },
|
167 | {
|
168 | "instanceof": "Function",
|
169 | "tsType": "Function"
|
170 | }
|
171 | ]
|
172 | },
|
173 | "FilterTypes": {
|
174 | "anyOf": [
|
175 | {
|
176 | "$ref": "#/definitions/FilterItemTypes"
|
177 | },
|
178 | {
|
179 | "type": "array",
|
180 | "items": {
|
181 | "description": "Rule to filter",
|
182 | "anyOf": [
|
183 | {
|
184 | "$ref": "#/definitions/FilterItemTypes"
|
185 | }
|
186 | ]
|
187 | }
|
188 | }
|
189 | ]
|
190 | },
|
191 | "LibraryCustomUmdObject": {
|
192 | "type": "object",
|
193 | "additionalProperties": false,
|
194 | "properties": {
|
195 | "amd": {
|
196 | "description": "Name of the exposed AMD library in the UMD",
|
197 | "type": "string"
|
198 | },
|
199 | "commonjs": {
|
200 | "description": "Name of the exposed commonjs export in the UMD",
|
201 | "type": "string"
|
202 | },
|
203 | "root": {
|
204 | "description": "Name of the property exposed globally by a UMD library",
|
205 | "anyOf": [
|
206 | {
|
207 | "type": "string"
|
208 | },
|
209 | {
|
210 | "$ref": "#/definitions/ArrayOfStringValues"
|
211 | }
|
212 | ]
|
213 | }
|
214 | }
|
215 | },
|
216 | "ModuleOptions": {
|
217 | "type": "object",
|
218 | "additionalProperties": false,
|
219 | "properties": {
|
220 | "defaultRules": {
|
221 | "description": "An array of rules applied by default for modules.",
|
222 | "anyOf": [
|
223 | {
|
224 | "$ref": "#/definitions/RuleSetRules"
|
225 | }
|
226 | ]
|
227 | },
|
228 | "exprContextCritical": {
|
229 | "description": "Enable warnings for full dynamic dependencies",
|
230 | "type": "boolean"
|
231 | },
|
232 | "exprContextRecursive": {
|
233 | "description": "Enable recursive directory lookup for full dynamic dependencies",
|
234 | "type": "boolean"
|
235 | },
|
236 | "exprContextRegExp": {
|
237 | "description": "Sets the default regular expression for full dynamic dependencies",
|
238 | "anyOf": [
|
239 | {
|
240 | "type": "boolean"
|
241 | },
|
242 | {
|
243 | "instanceof": "RegExp",
|
244 | "tsType": "RegExp"
|
245 | }
|
246 | ]
|
247 | },
|
248 | "exprContextRequest": {
|
249 | "description": "Set the default request for full dynamic dependencies",
|
250 | "type": "string"
|
251 | },
|
252 | "noParse": {
|
253 | "description": "Don't parse files matching. It's matched against the full resolved request.",
|
254 | "anyOf": [
|
255 | {
|
256 | "type": "array",
|
257 | "items": {
|
258 | "description": "A regular expression, when matched the module is not parsed",
|
259 | "instanceof": "RegExp",
|
260 | "tsType": "RegExp"
|
261 | },
|
262 | "minItems": 1
|
263 | },
|
264 | {
|
265 | "instanceof": "RegExp",
|
266 | "tsType": "RegExp"
|
267 | },
|
268 | {
|
269 | "instanceof": "Function",
|
270 | "tsType": "Function"
|
271 | },
|
272 | {
|
273 | "type": "array",
|
274 | "items": {
|
275 | "description": "An absolute path, when the module starts with this path it is not parsed",
|
276 | "type": "string",
|
277 | "absolutePath": true
|
278 | },
|
279 | "minItems": 1
|
280 | },
|
281 | {
|
282 | "type": "string",
|
283 | "absolutePath": true
|
284 | }
|
285 | ]
|
286 | },
|
287 | "rules": {
|
288 | "description": "An array of rules applied for modules.",
|
289 | "anyOf": [
|
290 | {
|
291 | "$ref": "#/definitions/RuleSetRules"
|
292 | }
|
293 | ]
|
294 | },
|
295 | "strictExportPresence": {
|
296 | "description": "Emit errors instead of warnings when imported names don't exist in imported module",
|
297 | "type": "boolean"
|
298 | },
|
299 | "strictThisContextOnImports": {
|
300 | "description": "Handle the this context correctly according to the spec for namespace objects",
|
301 | "type": "boolean"
|
302 | },
|
303 | "unknownContextCritical": {
|
304 | "description": "Enable warnings when using the require function in a not statically analyse-able way",
|
305 | "type": "boolean"
|
306 | },
|
307 | "unknownContextRecursive": {
|
308 | "description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way",
|
309 | "type": "boolean"
|
310 | },
|
311 | "unknownContextRegExp": {
|
312 | "description": "Sets the regular expression when using the require function in a not statically analyse-able way",
|
313 | "anyOf": [
|
314 | {
|
315 | "type": "boolean"
|
316 | },
|
317 | {
|
318 | "instanceof": "RegExp",
|
319 | "tsType": "RegExp"
|
320 | }
|
321 | ]
|
322 | },
|
323 | "unknownContextRequest": {
|
324 | "description": "Sets the request when using the require function in a not statically analyse-able way",
|
325 | "type": "string"
|
326 | },
|
327 | "unsafeCache": {
|
328 | "description": "Cache the resolving of module requests",
|
329 | "anyOf": [
|
330 | {
|
331 | "type": "boolean"
|
332 | },
|
333 | {
|
334 | "instanceof": "Function",
|
335 | "tsType": "Function"
|
336 | }
|
337 | ]
|
338 | },
|
339 | "wrappedContextCritical": {
|
340 | "description": "Enable warnings for partial dynamic dependencies",
|
341 | "type": "boolean"
|
342 | },
|
343 | "wrappedContextRecursive": {
|
344 | "description": "Enable recursive directory lookup for partial dynamic dependencies",
|
345 | "type": "boolean"
|
346 | },
|
347 | "wrappedContextRegExp": {
|
348 | "description": "Set the inner regular expression for partial dynamic dependencies",
|
349 | "instanceof": "RegExp",
|
350 | "tsType": "RegExp"
|
351 | }
|
352 | }
|
353 | },
|
354 | "NodeOptions": {
|
355 | "type": "object",
|
356 | "additionalProperties": {
|
357 | "description": "Include a polyfill for the node.js module",
|
358 | "enum": [false, true, "mock", "empty"]
|
359 | },
|
360 | "properties": {
|
361 | "Buffer": {
|
362 | "description": "Include a polyfill for the 'Buffer' variable",
|
363 | "enum": [false, true, "mock"]
|
364 | },
|
365 | "__dirname": {
|
366 | "description": "Include a polyfill for the '__dirname' variable",
|
367 | "enum": [false, true, "mock"]
|
368 | },
|
369 | "__filename": {
|
370 | "description": "Include a polyfill for the '__filename' variable",
|
371 | "enum": [false, true, "mock"]
|
372 | },
|
373 | "console": {
|
374 | "description": "Include a polyfill for the 'console' variable",
|
375 | "enum": [false, true, "mock"]
|
376 | },
|
377 | "global": {
|
378 | "description": "Include a polyfill for the 'global' variable",
|
379 | "type": "boolean"
|
380 | },
|
381 | "process": {
|
382 | "description": "Include a polyfill for the 'process' variable",
|
383 | "enum": [false, true, "mock"]
|
384 | }
|
385 | }
|
386 | },
|
387 | "NonEmptyArrayOfUniqueStringValues": {
|
388 | "type": "array",
|
389 | "items": {
|
390 | "description": "A non-empty string",
|
391 | "type": "string",
|
392 | "minLength": 1
|
393 | },
|
394 | "minItems": 1,
|
395 | "uniqueItems": true
|
396 | },
|
397 | "OptimizationOptions": {
|
398 | "description": "Enables/Disables integrated optimizations",
|
399 | "type": "object",
|
400 | "additionalProperties": false,
|
401 | "properties": {
|
402 | "checkWasmTypes": {
|
403 | "description": "Check for incompatible wasm types when importing/exporting from/to ESM",
|
404 | "type": "boolean"
|
405 | },
|
406 | "chunkIds": {
|
407 | "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin)",
|
408 | "enum": ["natural", "named", "size", "total-size", false]
|
409 | },
|
410 | "concatenateModules": {
|
411 | "description": "Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer",
|
412 | "type": "boolean"
|
413 | },
|
414 | "flagIncludedChunks": {
|
415 | "description": "Also flag chunks as loaded which contain a subset of the modules",
|
416 | "type": "boolean"
|
417 | },
|
418 | "hashedModuleIds": {
|
419 | "description": "Use hashed module id instead module identifiers for better long term caching (deprecated, used moduleIds: hashed instead)",
|
420 | "type": "boolean"
|
421 | },
|
422 | "mangleWasmImports": {
|
423 | "description": "Reduce size of WASM by changing imports to shorter strings.",
|
424 | "type": "boolean"
|
425 | },
|
426 | "mergeDuplicateChunks": {
|
427 | "description": "Merge chunks which contain the same modules",
|
428 | "type": "boolean"
|
429 | },
|
430 | "minimize": {
|
431 | "description": "Enable minimizing the output. Uses optimization.minimizer.",
|
432 | "type": "boolean"
|
433 | },
|
434 | "minimizer": {
|
435 | "description": "Minimizer(s) to use for minimizing the output",
|
436 | "type": "array",
|
437 | "items": {
|
438 | "description": "Plugin of type object or instanceof Function",
|
439 | "anyOf": [
|
440 | {
|
441 | "$ref": "#/definitions/WebpackPluginInstance"
|
442 | },
|
443 | {
|
444 | "$ref": "#/definitions/WebpackPluginFunction"
|
445 | }
|
446 | ]
|
447 | }
|
448 | },
|
449 | "moduleIds": {
|
450 | "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: short hashes as ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin)",
|
451 | "enum": ["natural", "named", "hashed", "size", "total-size", false]
|
452 | },
|
453 | "namedChunks": {
|
454 | "description": "Use readable chunk identifiers for better debugging (deprecated, used chunkIds: named instead)",
|
455 | "type": "boolean"
|
456 | },
|
457 | "namedModules": {
|
458 | "description": "Use readable module identifiers for better debugging (deprecated, used moduleIds: named instead)",
|
459 | "type": "boolean"
|
460 | },
|
461 | "noEmitOnErrors": {
|
462 | "description": "Avoid emitting assets when errors occur",
|
463 | "type": "boolean"
|
464 | },
|
465 | "nodeEnv": {
|
466 | "description": "Set process.env.NODE_ENV to a specific value",
|
467 | "anyOf": [
|
468 | {
|
469 | "enum": [false]
|
470 | },
|
471 | {
|
472 | "type": "string"
|
473 | }
|
474 | ]
|
475 | },
|
476 | "occurrenceOrder": {
|
477 | "description": "Figure out a order of modules which results in the smallest initial bundle",
|
478 | "type": "boolean"
|
479 | },
|
480 | "portableRecords": {
|
481 | "description": "Generate records with relative paths to be able to move the context folder",
|
482 | "type": "boolean"
|
483 | },
|
484 | "providedExports": {
|
485 | "description": "Figure out which exports are provided by modules to generate more efficient code",
|
486 | "type": "boolean"
|
487 | },
|
488 | "removeAvailableModules": {
|
489 | "description": "Removes modules from chunks when these modules are already included in all parents",
|
490 | "type": "boolean"
|
491 | },
|
492 | "removeEmptyChunks": {
|
493 | "description": "Remove chunks which are empty",
|
494 | "type": "boolean"
|
495 | },
|
496 | "runtimeChunk": {
|
497 | "description": "Create an additional chunk which contains only the webpack runtime and chunk hash maps",
|
498 | "oneOf": [
|
499 | {
|
500 | "type": "boolean"
|
501 | },
|
502 | {
|
503 | "enum": ["single", "multiple"]
|
504 | },
|
505 | {
|
506 | "type": "object",
|
507 | "additionalProperties": false,
|
508 | "properties": {
|
509 | "name": {
|
510 | "description": "The name or name factory for the runtime chunks",
|
511 | "oneOf": [
|
512 | {
|
513 | "type": "string"
|
514 | },
|
515 | {
|
516 | "instanceof": "Function",
|
517 | "tsType": "Function"
|
518 | }
|
519 | ]
|
520 | }
|
521 | }
|
522 | }
|
523 | ]
|
524 | },
|
525 | "sideEffects": {
|
526 | "description": "Skip over modules which are flagged to contain no side effects when exports are not used",
|
527 | "type": "boolean"
|
528 | },
|
529 | "splitChunks": {
|
530 | "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group",
|
531 | "oneOf": [
|
532 | {
|
533 | "enum": [false]
|
534 | },
|
535 | {
|
536 | "$ref": "#/definitions/OptimizationSplitChunksOptions"
|
537 | }
|
538 | ]
|
539 | },
|
540 | "usedExports": {
|
541 | "description": "Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code",
|
542 | "type": "boolean"
|
543 | }
|
544 | }
|
545 | },
|
546 | "OptimizationSplitChunksOptions": {
|
547 | "type": "object",
|
548 | "additionalProperties": false,
|
549 | "properties": {
|
550 | "automaticNameDelimiter": {
|
551 | "description": "Sets the name delimiter for created chunks",
|
552 | "type": "string",
|
553 | "minLength": 1
|
554 | },
|
555 | "cacheGroups": {
|
556 | "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks)",
|
557 | "type": "object",
|
558 | "additionalProperties": {
|
559 | "description": "Configuration for a cache group",
|
560 | "anyOf": [
|
561 | {
|
562 | "enum": [false]
|
563 | },
|
564 | {
|
565 | "instanceof": "Function",
|
566 | "tsType": "Function"
|
567 | },
|
568 | {
|
569 | "type": "string"
|
570 | },
|
571 | {
|
572 | "instanceof": "RegExp",
|
573 | "tsType": "RegExp"
|
574 | },
|
575 | {
|
576 | "type": "object",
|
577 | "additionalProperties": false,
|
578 | "properties": {
|
579 | "automaticNameDelimiter": {
|
580 | "description": "Sets the name delimiter for created chunks",
|
581 | "type": "string",
|
582 | "minLength": 1
|
583 | },
|
584 | "automaticNamePrefix": {
|
585 | "description": "Sets the name prefix for created chunks",
|
586 | "type": "string"
|
587 | },
|
588 | "chunks": {
|
589 | "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML)",
|
590 | "oneOf": [
|
591 | {
|
592 | "enum": ["initial", "async", "all"]
|
593 | },
|
594 | {
|
595 | "instanceof": "Function",
|
596 | "tsType": "Function"
|
597 | }
|
598 | ]
|
599 | },
|
600 | "enforce": {
|
601 | "description": "Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group",
|
602 | "type": "boolean"
|
603 | },
|
604 | "filename": {
|
605 | "description": "Sets the template for the filename for created chunks (Only works for initial chunks)",
|
606 | "type": "string",
|
607 | "minLength": 1
|
608 | },
|
609 | "maxAsyncRequests": {
|
610 | "description": "Maximum number of requests which are accepted for on-demand loading",
|
611 | "type": "number",
|
612 | "minimum": 1
|
613 | },
|
614 | "maxInitialRequests": {
|
615 | "description": "Maximum number of initial chunks which are accepted for an entry point",
|
616 | "type": "number",
|
617 | "minimum": 1
|
618 | },
|
619 | "maxSize": {
|
620 | "description": "Maximal size hint for the created chunks",
|
621 | "type": "number",
|
622 | "minimum": 0
|
623 | },
|
624 | "minChunks": {
|
625 | "description": "Minimum number of times a module has to be duplicated until it's considered for splitting",
|
626 | "type": "number",
|
627 | "minimum": 1
|
628 | },
|
629 | "minSize": {
|
630 | "description": "Minimal size for the created chunk",
|
631 | "type": "number",
|
632 | "minimum": 0
|
633 | },
|
634 | "name": {
|
635 | "description": "Give chunks for this cache group a name (chunks with equal name are merged)",
|
636 | "oneOf": [
|
637 | {
|
638 | "type": "boolean"
|
639 | },
|
640 | {
|
641 | "instanceof": "Function",
|
642 | "tsType": "Function"
|
643 | },
|
644 | {
|
645 | "type": "string"
|
646 | }
|
647 | ]
|
648 | },
|
649 | "priority": {
|
650 | "description": "Priority of this cache group",
|
651 | "type": "number"
|
652 | },
|
653 | "reuseExistingChunk": {
|
654 | "description": "Try to reuse existing chunk (with name) when it has matching modules",
|
655 | "type": "boolean"
|
656 | },
|
657 | "test": {
|
658 | "description": "Assign modules to a cache group",
|
659 | "oneOf": [
|
660 | {
|
661 | "instanceof": "Function",
|
662 | "tsType": "Function"
|
663 | },
|
664 | {
|
665 | "type": "string"
|
666 | },
|
667 | {
|
668 | "instanceof": "RegExp",
|
669 | "tsType": "RegExp"
|
670 | }
|
671 | ]
|
672 | }
|
673 | }
|
674 | }
|
675 | ]
|
676 | }
|
677 | },
|
678 | "chunks": {
|
679 | "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML)",
|
680 | "oneOf": [
|
681 | {
|
682 | "enum": ["initial", "async", "all"]
|
683 | },
|
684 | {
|
685 | "instanceof": "Function",
|
686 | "tsType": "Function"
|
687 | }
|
688 | ]
|
689 | },
|
690 | "fallbackCacheGroup": {
|
691 | "description": "Options for modules not selected by any other cache group",
|
692 | "type": "object",
|
693 | "additionalProperties": false,
|
694 | "properties": {
|
695 | "automaticNameDelimiter": {
|
696 | "description": "Sets the name delimiter for created chunks",
|
697 | "type": "string",
|
698 | "minLength": 1
|
699 | },
|
700 | "maxSize": {
|
701 | "description": "Maximal size hint for the created chunks",
|
702 | "type": "number",
|
703 | "minimum": 0
|
704 | },
|
705 | "minSize": {
|
706 | "description": "Minimal size for the created chunk",
|
707 | "type": "number",
|
708 | "minimum": 0
|
709 | }
|
710 | }
|
711 | },
|
712 | "filename": {
|
713 | "description": "Sets the template for the filename for created chunks (Only works for initial chunks)",
|
714 | "type": "string",
|
715 | "minLength": 1
|
716 | },
|
717 | "hidePathInfo": {
|
718 | "description": "Prevents exposing path info when creating names for parts splitted by maxSize",
|
719 | "type": "boolean"
|
720 | },
|
721 | "maxAsyncRequests": {
|
722 | "description": "Maximum number of requests which are accepted for on-demand loading",
|
723 | "type": "number",
|
724 | "minimum": 1
|
725 | },
|
726 | "maxInitialRequests": {
|
727 | "description": "Maximum number of initial chunks which are accepted for an entry point",
|
728 | "type": "number",
|
729 | "minimum": 1
|
730 | },
|
731 | "maxSize": {
|
732 | "description": "Maximal size hint for the created chunks",
|
733 | "type": "number",
|
734 | "minimum": 0
|
735 | },
|
736 | "minChunks": {
|
737 | "description": "Minimum number of times a module has to be duplicated until it's considered for splitting",
|
738 | "type": "number",
|
739 | "minimum": 1
|
740 | },
|
741 | "minSize": {
|
742 | "description": "Minimal size for the created chunks",
|
743 | "type": "number",
|
744 | "minimum": 0
|
745 | },
|
746 | "name": {
|
747 | "description": "Give chunks created a name (chunks with equal name are merged)",
|
748 | "oneOf": [
|
749 | {
|
750 | "type": "boolean"
|
751 | },
|
752 | {
|
753 | "instanceof": "Function",
|
754 | "tsType": "Function"
|
755 | },
|
756 | {
|
757 | "type": "string"
|
758 | }
|
759 | ]
|
760 | }
|
761 | }
|
762 | },
|
763 | "OutputOptions": {
|
764 | "type": "object",
|
765 | "additionalProperties": false,
|
766 | "properties": {
|
767 | "auxiliaryComment": {
|
768 | "description": "Add a comment in the UMD wrapper.",
|
769 | "anyOf": [
|
770 | {
|
771 | "description": "Append the same comment above each import style.",
|
772 | "type": "string"
|
773 | },
|
774 | {
|
775 | "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
|
776 | "type": "object",
|
777 | "additionalProperties": false,
|
778 | "properties": {
|
779 | "amd": {
|
780 | "description": "Set comment for `amd` section in UMD",
|
781 | "type": "string"
|
782 | },
|
783 | "commonjs": {
|
784 | "description": "Set comment for `commonjs` (exports) section in UMD",
|
785 | "type": "string"
|
786 | },
|
787 | "commonjs2": {
|
788 | "description": "Set comment for `commonjs2` (module.exports) section in UMD",
|
789 | "type": "string"
|
790 | },
|
791 | "root": {
|
792 | "description": "Set comment for `root` (global variable) section in UMD",
|
793 | "type": "string"
|
794 | }
|
795 | }
|
796 | }
|
797 | ]
|
798 | },
|
799 | "chunkCallbackName": {
|
800 | "description": "The callback function name used by webpack for loading of chunks in WebWorkers.",
|
801 | "type": "string"
|
802 | },
|
803 | "chunkFilename": {
|
804 | "description": "The filename of non-entry chunks as relative path inside the `output.path` directory.",
|
805 | "type": "string",
|
806 | "absolutePath": false
|
807 | },
|
808 | "chunkLoadTimeout": {
|
809 | "description": "Number of milliseconds before chunk request expires",
|
810 | "type": "number"
|
811 | },
|
812 | "crossOriginLoading": {
|
813 | "description": "This option enables cross-origin loading of chunks.",
|
814 | "enum": [false, "anonymous", "use-credentials"]
|
815 | },
|
816 | "devtoolFallbackModuleFilenameTemplate": {
|
817 | "description": "Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.",
|
818 | "anyOf": [
|
819 | {
|
820 | "type": "string"
|
821 | },
|
822 | {
|
823 | "instanceof": "Function",
|
824 | "tsType": "Function"
|
825 | }
|
826 | ]
|
827 | },
|
828 | "devtoolLineToLine": {
|
829 | "description": "Enable line to line mapped mode for all/specified modules. Line to line mapped mode uses a simple SourceMap where each line of the generated source is mapped to the same line of the original source. It’s a performance optimization. Only use it if your performance need to be better and you are sure that input lines match which generated lines.",
|
830 | "anyOf": [
|
831 | {
|
832 | "description": "`true` enables it for all modules (not recommended)",
|
833 | "type": "boolean"
|
834 | },
|
835 | {
|
836 | "description": "An object similar to `module.loaders` enables it for specific files.",
|
837 | "type": "object"
|
838 | }
|
839 | ]
|
840 | },
|
841 | "devtoolModuleFilenameTemplate": {
|
842 | "description": "Filename template string of function for the sources array in a generated SourceMap.",
|
843 | "anyOf": [
|
844 | {
|
845 | "type": "string"
|
846 | },
|
847 | {
|
848 | "instanceof": "Function",
|
849 | "tsType": "Function"
|
850 | }
|
851 | ]
|
852 | },
|
853 | "devtoolNamespace": {
|
854 | "description": "Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to `output.library` if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.",
|
855 | "type": "string"
|
856 | },
|
857 | "filename": {
|
858 | "description": "Specifies the name of each output file on disk. You must **not** specify an absolute path here! The `output.path` option determines the location on disk the files are written to, filename is used solely for naming the individual files.",
|
859 | "anyOf": [
|
860 | {
|
861 | "type": "string",
|
862 | "absolutePath": false
|
863 | },
|
864 | {
|
865 | "instanceof": "Function",
|
866 | "tsType": "Function"
|
867 | }
|
868 | ]
|
869 | },
|
870 | "globalObject": {
|
871 | "description": "An expression which is used to address the global object/scope in runtime code",
|
872 | "type": "string",
|
873 | "minLength": 1
|
874 | },
|
875 | "hashDigest": {
|
876 | "description": "Digest type used for the hash",
|
877 | "type": "string"
|
878 | },
|
879 | "hashDigestLength": {
|
880 | "description": "Number of chars which are used for the hash",
|
881 | "type": "number",
|
882 | "minimum": 1
|
883 | },
|
884 | "hashFunction": {
|
885 | "description": "Algorithm used for generation the hash (see node.js crypto package)",
|
886 | "anyOf": [
|
887 | {
|
888 | "type": "string",
|
889 | "minLength": 1
|
890 | },
|
891 | {
|
892 | "instanceof": "Function",
|
893 | "tsType": "(new () => import('../lib/util/createHash').Hash)"
|
894 | }
|
895 | ]
|
896 | },
|
897 | "hashSalt": {
|
898 | "description": "Any string which is added to the hash to salt it",
|
899 | "type": "string",
|
900 | "minLength": 1
|
901 | },
|
902 | "hotUpdateChunkFilename": {
|
903 | "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.",
|
904 | "anyOf": [
|
905 | {
|
906 | "type": "string",
|
907 | "absolutePath": false
|
908 | },
|
909 | {
|
910 | "instanceof": "Function",
|
911 | "tsType": "Function"
|
912 | }
|
913 | ]
|
914 | },
|
915 | "hotUpdateFunction": {
|
916 | "description": "The JSONP function used by webpack for async loading of hot update chunks.",
|
917 | "type": "string"
|
918 | },
|
919 | "hotUpdateMainFilename": {
|
920 | "description": "The filename of the Hot Update Main File. It is inside the `output.path` directory.",
|
921 | "anyOf": [
|
922 | {
|
923 | "type": "string",
|
924 | "absolutePath": false
|
925 | },
|
926 | {
|
927 | "instanceof": "Function",
|
928 | "tsType": "Function"
|
929 | }
|
930 | ]
|
931 | },
|
932 | "jsonpFunction": {
|
933 | "description": "The JSONP function used by webpack for async loading of chunks.",
|
934 | "type": "string"
|
935 | },
|
936 | "jsonpScriptType": {
|
937 | "description": "This option enables loading async chunks via a custom script type, such as script type=\"module\"",
|
938 | "enum": [false, "text/javascript", "module"]
|
939 | },
|
940 | "library": {
|
941 | "description": "If set, export the bundle as library. `output.library` is the name.",
|
942 | "anyOf": [
|
943 | {
|
944 | "type": "string"
|
945 | },
|
946 | {
|
947 | "type": "array",
|
948 | "items": {
|
949 | "description": "A part of the library name",
|
950 | "type": "string"
|
951 | }
|
952 | },
|
953 | {
|
954 | "$ref": "#/definitions/LibraryCustomUmdObject"
|
955 | }
|
956 | ]
|
957 | },
|
958 | "libraryExport": {
|
959 | "description": "Specify which export should be exposed as library",
|
960 | "anyOf": [
|
961 | {
|
962 | "type": "string"
|
963 | },
|
964 | {
|
965 | "$ref": "#/definitions/ArrayOfStringValues"
|
966 | }
|
967 | ]
|
968 | },
|
969 | "libraryTarget": {
|
970 | "description": "Type of library",
|
971 | "enum": [
|
972 | "var",
|
973 | "assign",
|
974 | "this",
|
975 | "window",
|
976 | "self",
|
977 | "global",
|
978 | "commonjs",
|
979 | "commonjs2",
|
980 | "commonjs-module",
|
981 | "amd",
|
982 | "amd-require",
|
983 | "umd",
|
984 | "umd2",
|
985 | "jsonp"
|
986 | ]
|
987 | },
|
988 | "path": {
|
989 | "description": "The output directory as **absolute path** (required).",
|
990 | "type": "string",
|
991 | "absolutePath": true
|
992 | },
|
993 | "pathinfo": {
|
994 | "description": "Include comments with information about the modules.",
|
995 | "type": "boolean"
|
996 | },
|
997 | "publicPath": {
|
998 | "description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.",
|
999 | "anyOf": [
|
1000 | {
|
1001 | "type": "string"
|
1002 | },
|
1003 | {
|
1004 | "instanceof": "Function",
|
1005 | "tsType": "Function"
|
1006 | }
|
1007 | ]
|
1008 | },
|
1009 | "sourceMapFilename": {
|
1010 | "description": "The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.",
|
1011 | "type": "string",
|
1012 | "absolutePath": false
|
1013 | },
|
1014 | "sourcePrefix": {
|
1015 | "description": "Prefixes every line of the source in the bundle with this string.",
|
1016 | "type": "string"
|
1017 | },
|
1018 | "strictModuleExceptionHandling": {
|
1019 | "description": "Handles exceptions in module loading correctly at a performance cost.",
|
1020 | "type": "boolean"
|
1021 | },
|
1022 | "umdNamedDefine": {
|
1023 | "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.",
|
1024 | "type": "boolean"
|
1025 | },
|
1026 | "webassemblyModuleFilename": {
|
1027 | "description": "The filename of WebAssembly modules as relative path inside the `output.path` directory.",
|
1028 | "type": "string",
|
1029 | "absolutePath": false
|
1030 | }
|
1031 | }
|
1032 | },
|
1033 | "PerformanceOptions": {
|
1034 | "type": "object",
|
1035 | "additionalProperties": false,
|
1036 | "properties": {
|
1037 | "assetFilter": {
|
1038 | "description": "Filter function to select assets that are checked",
|
1039 | "instanceof": "Function",
|
1040 | "tsType": "Function"
|
1041 | },
|
1042 | "hints": {
|
1043 | "description": "Sets the format of the hints: warnings, errors or nothing at all",
|
1044 | "enum": [false, "warning", "error"]
|
1045 | },
|
1046 | "maxAssetSize": {
|
1047 | "description": "Filesize limit (in bytes) when exceeded, that webpack will provide performance hints",
|
1048 | "type": "number"
|
1049 | },
|
1050 | "maxEntrypointSize": {
|
1051 | "description": "Total size of an entry point (in bytes)",
|
1052 | "type": "number"
|
1053 | }
|
1054 | }
|
1055 | },
|
1056 | "ResolveOptions": {
|
1057 | "type": "object",
|
1058 | "additionalProperties": false,
|
1059 | "properties": {
|
1060 | "alias": {
|
1061 | "description": "Redirect module requests",
|
1062 | "anyOf": [
|
1063 | {
|
1064 | "type": "object",
|
1065 | "additionalProperties": {
|
1066 | "description": "New request",
|
1067 | "type": "string"
|
1068 | }
|
1069 | },
|
1070 | {
|
1071 | "type": "array",
|
1072 | "items": {
|
1073 | "description": "Alias configuration",
|
1074 | "type": "object",
|
1075 | "additionalProperties": false,
|
1076 | "properties": {
|
1077 | "alias": {
|
1078 | "description": "New request",
|
1079 | "type": "string"
|
1080 | },
|
1081 | "name": {
|
1082 | "description": "Request to be redirected",
|
1083 | "type": "string"
|
1084 | },
|
1085 | "onlyModule": {
|
1086 | "description": "Redirect only exact matching request",
|
1087 | "type": "boolean"
|
1088 | }
|
1089 | }
|
1090 | }
|
1091 | }
|
1092 | ]
|
1093 | },
|
1094 | "aliasFields": {
|
1095 | "description": "Fields in the description file (package.json) which are used to redirect requests inside the module",
|
1096 | "anyOf": [
|
1097 | {
|
1098 | "$ref": "#/definitions/ArrayOfStringOrStringArrayValues"
|
1099 | }
|
1100 | ]
|
1101 | },
|
1102 | "cachePredicate": {
|
1103 | "description": "Predicate function to decide which requests should be cached",
|
1104 | "instanceof": "Function",
|
1105 | "tsType": "Function"
|
1106 | },
|
1107 | "cacheWithContext": {
|
1108 | "description": "Include the context information in the cache identifier when caching",
|
1109 | "type": "boolean"
|
1110 | },
|
1111 | "concord": {
|
1112 | "description": "Enable concord resolving extras",
|
1113 | "type": "boolean"
|
1114 | },
|
1115 | "descriptionFiles": {
|
1116 | "description": "Filenames used to find a description file",
|
1117 | "anyOf": [
|
1118 | {
|
1119 | "$ref": "#/definitions/ArrayOfStringValues"
|
1120 | }
|
1121 | ]
|
1122 | },
|
1123 | "enforceExtension": {
|
1124 | "description": "Enforce using one of the extensions from the extensions option",
|
1125 | "type": "boolean"
|
1126 | },
|
1127 | "enforceModuleExtension": {
|
1128 | "description": "Enforce using one of the module extensions from the moduleExtensions option",
|
1129 | "type": "boolean"
|
1130 | },
|
1131 | "extensions": {
|
1132 | "description": "Extensions added to the request when trying to find the file",
|
1133 | "anyOf": [
|
1134 | {
|
1135 | "$ref": "#/definitions/ArrayOfStringValues"
|
1136 | }
|
1137 | ]
|
1138 | },
|
1139 | "fileSystem": {
|
1140 | "description": "Filesystem for the resolver"
|
1141 | },
|
1142 | "mainFields": {
|
1143 | "description": "Field names from the description file (package.json) which are used to find the default entry point",
|
1144 | "anyOf": [
|
1145 | {
|
1146 | "$ref": "#/definitions/ArrayOfStringOrStringArrayValues"
|
1147 | }
|
1148 | ]
|
1149 | },
|
1150 | "mainFiles": {
|
1151 | "description": "Filenames used to find the default entry point if there is no description file or main field",
|
1152 | "anyOf": [
|
1153 | {
|
1154 | "$ref": "#/definitions/ArrayOfStringValues"
|
1155 | }
|
1156 | ]
|
1157 | },
|
1158 | "moduleExtensions": {
|
1159 | "description": "Extensions added to the module request when trying to find the module",
|
1160 | "anyOf": [
|
1161 | {
|
1162 | "$ref": "#/definitions/ArrayOfStringValues"
|
1163 | }
|
1164 | ]
|
1165 | },
|
1166 | "modules": {
|
1167 | "description": "Folder names or directory paths where to find modules",
|
1168 | "anyOf": [
|
1169 | {
|
1170 | "$ref": "#/definitions/ArrayOfStringValues"
|
1171 | }
|
1172 | ]
|
1173 | },
|
1174 | "plugins": {
|
1175 | "description": "Plugins for the resolver",
|
1176 | "type": "array",
|
1177 | "items": {
|
1178 | "description": "Plugin of type object or instanceof Function",
|
1179 | "anyOf": [
|
1180 | {
|
1181 | "$ref": "#/definitions/WebpackPluginInstance"
|
1182 | },
|
1183 | {
|
1184 | "$ref": "#/definitions/WebpackPluginFunction"
|
1185 | }
|
1186 | ]
|
1187 | }
|
1188 | },
|
1189 | "resolver": {
|
1190 | "description": "Custom resolver"
|
1191 | },
|
1192 | "symlinks": {
|
1193 | "description": "Enable resolving symlinks to the original location",
|
1194 | "type": "boolean"
|
1195 | },
|
1196 | "unsafeCache": {
|
1197 | "description": "Enable caching of successfully resolved requests",
|
1198 | "anyOf": [
|
1199 | {
|
1200 | "type": "boolean"
|
1201 | },
|
1202 | {
|
1203 | "type": "object",
|
1204 | "additionalProperties": true
|
1205 | }
|
1206 | ]
|
1207 | },
|
1208 | "useSyncFileSystemCalls": {
|
1209 | "description": "Use synchronous filesystem calls for the resolver",
|
1210 | "type": "boolean"
|
1211 | }
|
1212 | }
|
1213 | },
|
1214 | "RuleSetCondition": {
|
1215 | "anyOf": [
|
1216 | {
|
1217 | "instanceof": "RegExp",
|
1218 | "tsType": "RegExp"
|
1219 | },
|
1220 | {
|
1221 | "type": "string",
|
1222 | "minLength": 1
|
1223 | },
|
1224 | {
|
1225 | "instanceof": "Function",
|
1226 | "tsType": "((value: string) => boolean)"
|
1227 | },
|
1228 | {
|
1229 | "$ref": "#/definitions/RuleSetConditions"
|
1230 | },
|
1231 | {
|
1232 | "type": "object",
|
1233 | "additionalProperties": false,
|
1234 | "properties": {
|
1235 | "and": {
|
1236 | "description": "Logical AND",
|
1237 | "anyOf": [
|
1238 | {
|
1239 | "$ref": "#/definitions/RuleSetConditions"
|
1240 | }
|
1241 | ]
|
1242 | },
|
1243 | "exclude": {
|
1244 | "description": "Exclude all modules matching any of these conditions",
|
1245 | "anyOf": [
|
1246 | {
|
1247 | "$ref": "#/definitions/RuleSetConditionOrConditions"
|
1248 | }
|
1249 | ]
|
1250 | },
|
1251 | "include": {
|
1252 | "description": "Exclude all modules matching not any of these conditions",
|
1253 | "anyOf": [
|
1254 | {
|
1255 | "$ref": "#/definitions/RuleSetConditionOrConditions"
|
1256 | }
|
1257 | ]
|
1258 | },
|
1259 | "not": {
|
1260 | "description": "Logical NOT",
|
1261 | "anyOf": [
|
1262 | {
|
1263 | "$ref": "#/definitions/RuleSetConditions"
|
1264 | }
|
1265 | ]
|
1266 | },
|
1267 | "or": {
|
1268 | "description": "Logical OR",
|
1269 | "anyOf": [
|
1270 | {
|
1271 | "$ref": "#/definitions/RuleSetConditions"
|
1272 | }
|
1273 | ]
|
1274 | },
|
1275 | "test": {
|
1276 | "description": "Exclude all modules matching any of these conditions",
|
1277 | "anyOf": [
|
1278 | {
|
1279 | "$ref": "#/definitions/RuleSetConditionOrConditions"
|
1280 | }
|
1281 | ]
|
1282 | }
|
1283 | }
|
1284 | }
|
1285 | ]
|
1286 | },
|
1287 | "RuleSetConditionAbsolute": {
|
1288 | "anyOf": [
|
1289 | {
|
1290 | "instanceof": "RegExp",
|
1291 | "tsType": "RegExp"
|
1292 | },
|
1293 | {
|
1294 | "type": "string",
|
1295 | "absolutePath": true
|
1296 | },
|
1297 | {
|
1298 | "instanceof": "Function",
|
1299 | "tsType": "((value: string) => boolean)"
|
1300 | },
|
1301 | {
|
1302 | "$ref": "#/definitions/RuleSetConditionsAbsolute"
|
1303 | },
|
1304 | {
|
1305 | "type": "object",
|
1306 | "additionalProperties": false,
|
1307 | "properties": {
|
1308 | "and": {
|
1309 | "description": "Logical AND",
|
1310 | "anyOf": [
|
1311 | {
|
1312 | "$ref": "#/definitions/RuleSetConditionsAbsolute"
|
1313 | }
|
1314 | ]
|
1315 | },
|
1316 | "exclude": {
|
1317 | "description": "Exclude all modules matching any of these conditions",
|
1318 | "anyOf": [
|
1319 | {
|
1320 | "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
|
1321 | }
|
1322 | ]
|
1323 | },
|
1324 | "include": {
|
1325 | "description": "Exclude all modules matching not any of these conditions",
|
1326 | "anyOf": [
|
1327 | {
|
1328 | "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
|
1329 | }
|
1330 | ]
|
1331 | },
|
1332 | "not": {
|
1333 | "description": "Logical NOT",
|
1334 | "anyOf": [
|
1335 | {
|
1336 | "$ref": "#/definitions/RuleSetConditionsAbsolute"
|
1337 | }
|
1338 | ]
|
1339 | },
|
1340 | "or": {
|
1341 | "description": "Logical OR",
|
1342 | "anyOf": [
|
1343 | {
|
1344 | "$ref": "#/definitions/RuleSetConditionsAbsolute"
|
1345 | }
|
1346 | ]
|
1347 | },
|
1348 | "test": {
|
1349 | "description": "Exclude all modules matching any of these conditions",
|
1350 | "anyOf": [
|
1351 | {
|
1352 | "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
|
1353 | }
|
1354 | ]
|
1355 | }
|
1356 | }
|
1357 | }
|
1358 | ]
|
1359 | },
|
1360 | "RuleSetConditionOrConditions": {
|
1361 | "description": "One or multiple rule conditions",
|
1362 | "anyOf": [
|
1363 | {
|
1364 | "$ref": "#/definitions/RuleSetCondition"
|
1365 | },
|
1366 | {
|
1367 | "$ref": "#/definitions/RuleSetConditions"
|
1368 | }
|
1369 | ]
|
1370 | },
|
1371 | "RuleSetConditionOrConditionsAbsolute": {
|
1372 | "description": "One or multiple rule conditions",
|
1373 | "anyOf": [
|
1374 | {
|
1375 | "$ref": "#/definitions/RuleSetConditionAbsolute"
|
1376 | },
|
1377 | {
|
1378 | "$ref": "#/definitions/RuleSetConditionsAbsolute"
|
1379 | }
|
1380 | ]
|
1381 | },
|
1382 | "RuleSetConditions": {
|
1383 | "type": "array",
|
1384 | "items": {
|
1385 | "description": "A rule condition",
|
1386 | "anyOf": [
|
1387 | {
|
1388 | "$ref": "#/definitions/RuleSetCondition"
|
1389 | }
|
1390 | ]
|
1391 | },
|
1392 | "tsType": "RuleSetConditionsRecursive"
|
1393 | },
|
1394 | "RuleSetConditionsAbsolute": {
|
1395 | "type": "array",
|
1396 | "items": {
|
1397 | "description": "A rule condition",
|
1398 | "anyOf": [
|
1399 | {
|
1400 | "$ref": "#/definitions/RuleSetConditionAbsolute"
|
1401 | }
|
1402 | ]
|
1403 | },
|
1404 | "tsType": "RuleSetConditionsAbsoluteRecursive"
|
1405 | },
|
1406 | "RuleSetLoader": {
|
1407 | "type": "string",
|
1408 | "minLength": 1
|
1409 | },
|
1410 | "RuleSetQuery": {
|
1411 | "anyOf": [
|
1412 | {
|
1413 | "type": "object"
|
1414 | },
|
1415 | {
|
1416 | "type": "string"
|
1417 | }
|
1418 | ]
|
1419 | },
|
1420 | "RuleSetRule": {
|
1421 | "type": "object",
|
1422 | "additionalProperties": false,
|
1423 | "properties": {
|
1424 | "compiler": {
|
1425 | "description": "Match the child compiler name",
|
1426 | "anyOf": [
|
1427 | {
|
1428 | "$ref": "#/definitions/RuleSetConditionOrConditions"
|
1429 | }
|
1430 | ]
|
1431 | },
|
1432 | "enforce": {
|
1433 | "description": "Enforce this rule as pre or post step",
|
1434 | "enum": ["pre", "post"]
|
1435 | },
|
1436 | "exclude": {
|
1437 | "description": "Shortcut for resource.exclude",
|
1438 | "anyOf": [
|
1439 | {
|
1440 | "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
|
1441 | }
|
1442 | ]
|
1443 | },
|
1444 | "include": {
|
1445 | "description": "Shortcut for resource.include",
|
1446 | "anyOf": [
|
1447 | {
|
1448 | "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
|
1449 | }
|
1450 | ]
|
1451 | },
|
1452 | "issuer": {
|
1453 | "description": "Match the issuer of the module (The module pointing to this module)",
|
1454 | "anyOf": [
|
1455 | {
|
1456 | "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
|
1457 | }
|
1458 | ]
|
1459 | },
|
1460 | "loader": {
|
1461 | "description": "Shortcut for use.loader",
|
1462 | "anyOf": [
|
1463 | {
|
1464 | "$ref": "#/definitions/RuleSetLoader"
|
1465 | },
|
1466 | {
|
1467 | "$ref": "#/definitions/RuleSetUse"
|
1468 | }
|
1469 | ]
|
1470 | },
|
1471 | "loaders": {
|
1472 | "description": "Shortcut for use.loader",
|
1473 | "anyOf": [
|
1474 | {
|
1475 | "$ref": "#/definitions/RuleSetUse"
|
1476 | }
|
1477 | ]
|
1478 | },
|
1479 | "oneOf": {
|
1480 | "description": "Only execute the first matching rule in this array",
|
1481 | "anyOf": [
|
1482 | {
|
1483 | "$ref": "#/definitions/RuleSetRules"
|
1484 | }
|
1485 | ]
|
1486 | },
|
1487 | "options": {
|
1488 | "description": "Shortcut for use.options",
|
1489 | "anyOf": [
|
1490 | {
|
1491 | "$ref": "#/definitions/RuleSetQuery"
|
1492 | }
|
1493 | ]
|
1494 | },
|
1495 | "parser": {
|
1496 | "description": "Options for parsing",
|
1497 | "type": "object",
|
1498 | "additionalProperties": true
|
1499 | },
|
1500 | "query": {
|
1501 | "description": "Shortcut for use.query",
|
1502 | "anyOf": [
|
1503 | {
|
1504 | "$ref": "#/definitions/RuleSetQuery"
|
1505 | }
|
1506 | ]
|
1507 | },
|
1508 | "resolve": {
|
1509 | "description": "Options for the resolver",
|
1510 | "type": "object",
|
1511 | "anyOf": [
|
1512 | {
|
1513 | "$ref": "#/definitions/ResolveOptions"
|
1514 | }
|
1515 | ]
|
1516 | },
|
1517 | "resource": {
|
1518 | "description": "Match the resource path of the module",
|
1519 | "anyOf": [
|
1520 | {
|
1521 | "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
|
1522 | }
|
1523 | ]
|
1524 | },
|
1525 | "resourceQuery": {
|
1526 | "description": "Match the resource query of the module",
|
1527 | "anyOf": [
|
1528 | {
|
1529 | "$ref": "#/definitions/RuleSetConditionOrConditions"
|
1530 | }
|
1531 | ]
|
1532 | },
|
1533 | "rules": {
|
1534 | "description": "Match and execute these rules when this rule is matched",
|
1535 | "anyOf": [
|
1536 | {
|
1537 | "$ref": "#/definitions/RuleSetRules"
|
1538 | }
|
1539 | ]
|
1540 | },
|
1541 | "sideEffects": {
|
1542 | "description": "Flags a module as with or without side effects",
|
1543 | "type": "boolean"
|
1544 | },
|
1545 | "test": {
|
1546 | "description": "Shortcut for resource.test",
|
1547 | "anyOf": [
|
1548 | {
|
1549 | "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
|
1550 | }
|
1551 | ]
|
1552 | },
|
1553 | "type": {
|
1554 | "description": "Module type to use for the module",
|
1555 | "enum": [
|
1556 | "javascript/auto",
|
1557 | "javascript/dynamic",
|
1558 | "javascript/esm",
|
1559 | "json",
|
1560 | "webassembly/experimental"
|
1561 | ]
|
1562 | },
|
1563 | "use": {
|
1564 | "description": "Modifiers applied to the module when rule is matched",
|
1565 | "anyOf": [
|
1566 | {
|
1567 | "$ref": "#/definitions/RuleSetUse"
|
1568 | }
|
1569 | ]
|
1570 | }
|
1571 | }
|
1572 | },
|
1573 | "RuleSetRules": {
|
1574 | "type": "array",
|
1575 | "items": {
|
1576 | "description": "A rule",
|
1577 | "anyOf": [
|
1578 | {
|
1579 | "$ref": "#/definitions/RuleSetRule"
|
1580 | }
|
1581 | ]
|
1582 | }
|
1583 | },
|
1584 | "RuleSetUse": {
|
1585 | "anyOf": [
|
1586 | {
|
1587 | "$ref": "#/definitions/RuleSetUseItem"
|
1588 | },
|
1589 | {
|
1590 | "instanceof": "Function",
|
1591 | "tsType": "Function"
|
1592 | },
|
1593 | {
|
1594 | "type": "array",
|
1595 | "items": {
|
1596 | "description": "An use item",
|
1597 | "anyOf": [
|
1598 | {
|
1599 | "$ref": "#/definitions/RuleSetUseItem"
|
1600 | }
|
1601 | ]
|
1602 | }
|
1603 | }
|
1604 | ]
|
1605 | },
|
1606 | "RuleSetUseItem": {
|
1607 | "anyOf": [
|
1608 | {
|
1609 | "$ref": "#/definitions/RuleSetLoader"
|
1610 | },
|
1611 | {
|
1612 | "instanceof": "Function",
|
1613 | "tsType": "Function"
|
1614 | },
|
1615 | {
|
1616 | "type": "object",
|
1617 | "additionalProperties": false,
|
1618 | "properties": {
|
1619 | "ident": {
|
1620 | "description": "Unique loader identifier",
|
1621 | "type": "string"
|
1622 | },
|
1623 | "loader": {
|
1624 | "description": "Loader name",
|
1625 | "anyOf": [
|
1626 | {
|
1627 | "$ref": "#/definitions/RuleSetLoader"
|
1628 | }
|
1629 | ]
|
1630 | },
|
1631 | "options": {
|
1632 | "description": "Loader options",
|
1633 | "anyOf": [
|
1634 | {
|
1635 | "$ref": "#/definitions/RuleSetQuery"
|
1636 | }
|
1637 | ]
|
1638 | },
|
1639 | "query": {
|
1640 | "description": "Loader query",
|
1641 | "anyOf": [
|
1642 | {
|
1643 | "$ref": "#/definitions/RuleSetQuery"
|
1644 | }
|
1645 | ]
|
1646 | }
|
1647 | }
|
1648 | }
|
1649 | ]
|
1650 | },
|
1651 | "StatsOptions": {
|
1652 | "type": "object",
|
1653 | "additionalProperties": false,
|
1654 | "properties": {
|
1655 | "all": {
|
1656 | "description": "fallback value for stats options when an option is not defined (has precedence over local webpack defaults)",
|
1657 | "type": "boolean"
|
1658 | },
|
1659 | "assets": {
|
1660 | "description": "add assets information",
|
1661 | "type": "boolean"
|
1662 | },
|
1663 | "assetsSort": {
|
1664 | "description": "sort the assets by that field",
|
1665 | "type": "string"
|
1666 | },
|
1667 | "builtAt": {
|
1668 | "description": "add built at time information",
|
1669 | "type": "boolean"
|
1670 | },
|
1671 | "cached": {
|
1672 | "description": "add also information about cached (not built) modules",
|
1673 | "type": "boolean"
|
1674 | },
|
1675 | "cachedAssets": {
|
1676 | "description": "Show cached assets (setting this to `false` only shows emitted files)",
|
1677 | "type": "boolean"
|
1678 | },
|
1679 | "children": {
|
1680 | "description": "add children information",
|
1681 | "type": "boolean"
|
1682 | },
|
1683 | "chunkGroups": {
|
1684 | "description": "Display all chunk groups with the corresponding bundles",
|
1685 | "type": "boolean"
|
1686 | },
|
1687 | "chunkModules": {
|
1688 | "description": "add built modules information to chunk information",
|
1689 | "type": "boolean"
|
1690 | },
|
1691 | "chunkOrigins": {
|
1692 | "description": "add the origins of chunks and chunk merging info",
|
1693 | "type": "boolean"
|
1694 | },
|
1695 | "chunks": {
|
1696 | "description": "add chunk information",
|
1697 | "type": "boolean"
|
1698 | },
|
1699 | "chunksSort": {
|
1700 | "description": "sort the chunks by that field",
|
1701 | "type": "string"
|
1702 | },
|
1703 | "colors": {
|
1704 | "description": "Enables/Disables colorful output",
|
1705 | "oneOf": [
|
1706 | {
|
1707 | "description": "`webpack --colors` equivalent",
|
1708 | "type": "boolean"
|
1709 | },
|
1710 | {
|
1711 | "type": "object",
|
1712 | "additionalProperties": false,
|
1713 | "properties": {
|
1714 | "bold": {
|
1715 | "description": "Custom color for bold text",
|
1716 | "type": "string"
|
1717 | },
|
1718 | "cyan": {
|
1719 | "description": "Custom color for cyan text",
|
1720 | "type": "string"
|
1721 | },
|
1722 | "green": {
|
1723 | "description": "Custom color for green text",
|
1724 | "type": "string"
|
1725 | },
|
1726 | "magenta": {
|
1727 | "description": "Custom color for magenta text",
|
1728 | "type": "string"
|
1729 | },
|
1730 | "red": {
|
1731 | "description": "Custom color for red text",
|
1732 | "type": "string"
|
1733 | },
|
1734 | "yellow": {
|
1735 | "description": "Custom color for yellow text",
|
1736 | "type": "string"
|
1737 | }
|
1738 | }
|
1739 | }
|
1740 | ]
|
1741 | },
|
1742 | "context": {
|
1743 | "description": "context directory for request shortening",
|
1744 | "type": "string",
|
1745 | "absolutePath": true
|
1746 | },
|
1747 | "depth": {
|
1748 | "description": "add module depth in module graph",
|
1749 | "type": "boolean"
|
1750 | },
|
1751 | "entrypoints": {
|
1752 | "description": "Display the entry points with the corresponding bundles",
|
1753 | "type": "boolean"
|
1754 | },
|
1755 | "env": {
|
1756 | "description": "add --env information",
|
1757 | "type": "boolean"
|
1758 | },
|
1759 | "errorDetails": {
|
1760 | "description": "add details to errors (like resolving log)",
|
1761 | "type": "boolean"
|
1762 | },
|
1763 | "errors": {
|
1764 | "description": "add errors",
|
1765 | "type": "boolean"
|
1766 | },
|
1767 | "exclude": {
|
1768 | "description": "Please use excludeModules instead.",
|
1769 | "anyOf": [
|
1770 | {
|
1771 | "$ref": "#/definitions/FilterTypes"
|
1772 | },
|
1773 | {
|
1774 | "type": "boolean"
|
1775 | }
|
1776 | ]
|
1777 | },
|
1778 | "excludeAssets": {
|
1779 | "description": "Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions",
|
1780 | "anyOf": [
|
1781 | {
|
1782 | "$ref": "#/definitions/FilterTypes"
|
1783 | }
|
1784 | ]
|
1785 | },
|
1786 | "excludeModules": {
|
1787 | "description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions",
|
1788 | "anyOf": [
|
1789 | {
|
1790 | "$ref": "#/definitions/FilterTypes"
|
1791 | },
|
1792 | {
|
1793 | "type": "boolean"
|
1794 | }
|
1795 | ]
|
1796 | },
|
1797 | "hash": {
|
1798 | "description": "add the hash of the compilation",
|
1799 | "type": "boolean"
|
1800 | },
|
1801 | "maxModules": {
|
1802 | "description": "Set the maximum number of modules to be shown",
|
1803 | "type": "number"
|
1804 | },
|
1805 | "moduleAssets": {
|
1806 | "description": "add information about assets inside modules",
|
1807 | "type": "boolean"
|
1808 | },
|
1809 | "moduleTrace": {
|
1810 | "description": "add dependencies and origin of warnings/errors",
|
1811 | "type": "boolean"
|
1812 | },
|
1813 | "modules": {
|
1814 | "description": "add built modules information",
|
1815 | "type": "boolean"
|
1816 | },
|
1817 | "modulesSort": {
|
1818 | "description": "sort the modules by that field",
|
1819 | "type": "string"
|
1820 | },
|
1821 | "nestedModules": {
|
1822 | "description": "add information about modules nested in other modules (like with module concatenation)",
|
1823 | "type": "boolean"
|
1824 | },
|
1825 | "optimizationBailout": {
|
1826 | "description": "show reasons why optimization bailed out for modules",
|
1827 | "type": "boolean"
|
1828 | },
|
1829 | "outputPath": {
|
1830 | "description": "Add output path information",
|
1831 | "type": "boolean"
|
1832 | },
|
1833 | "performance": {
|
1834 | "description": "add performance hint flags",
|
1835 | "type": "boolean"
|
1836 | },
|
1837 | "providedExports": {
|
1838 | "description": "show exports provided by modules",
|
1839 | "type": "boolean"
|
1840 | },
|
1841 | "publicPath": {
|
1842 | "description": "Add public path information",
|
1843 | "type": "boolean"
|
1844 | },
|
1845 | "reasons": {
|
1846 | "description": "add information about the reasons why modules are included",
|
1847 | "type": "boolean"
|
1848 | },
|
1849 | "source": {
|
1850 | "description": "add the source code of modules",
|
1851 | "type": "boolean"
|
1852 | },
|
1853 | "timings": {
|
1854 | "description": "add timing information",
|
1855 | "type": "boolean"
|
1856 | },
|
1857 | "usedExports": {
|
1858 | "description": "show exports used by modules",
|
1859 | "type": "boolean"
|
1860 | },
|
1861 | "version": {
|
1862 | "description": "add webpack version information",
|
1863 | "type": "boolean"
|
1864 | },
|
1865 | "warnings": {
|
1866 | "description": "add warnings",
|
1867 | "type": "boolean"
|
1868 | },
|
1869 | "warningsFilter": {
|
1870 | "description": "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions",
|
1871 | "anyOf": [
|
1872 | {
|
1873 | "$ref": "#/definitions/FilterTypes"
|
1874 | }
|
1875 | ]
|
1876 | }
|
1877 | }
|
1878 | },
|
1879 | "WebpackPluginFunction": {
|
1880 | "description": "Function acting as plugin",
|
1881 | "instanceof": "Function",
|
1882 | "tsType": "(compiler: import('../lib/Compiler')) => void"
|
1883 | },
|
1884 | "WebpackPluginInstance": {
|
1885 | "description": "Plugin instance",
|
1886 | "type": "object",
|
1887 | "additionalProperties": true,
|
1888 | "properties": {
|
1889 | "apply": {
|
1890 | "description": "The run point of the plugin, required method.",
|
1891 | "instanceof": "Function",
|
1892 | "tsType": "(compiler: import('../lib/Compiler')) => void"
|
1893 | }
|
1894 | },
|
1895 | "required": ["apply"]
|
1896 | }
|
1897 | },
|
1898 | "type": "object",
|
1899 | "additionalProperties": false,
|
1900 | "properties": {
|
1901 | "amd": {
|
1902 | "description": "Set the value of `require.amd` and `define.amd`."
|
1903 | },
|
1904 | "bail": {
|
1905 | "description": "Report the first error as a hard error instead of tolerating it.",
|
1906 | "type": "boolean"
|
1907 | },
|
1908 | "cache": {
|
1909 | "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.",
|
1910 | "anyOf": [
|
1911 | {
|
1912 | "description": "You can pass `false` to disable it.",
|
1913 | "type": "boolean"
|
1914 | },
|
1915 | {
|
1916 | "description": "You can pass an object to enable it and let webpack use the passed object as cache. This way you can share the cache object between multiple compiler calls.",
|
1917 | "type": "object"
|
1918 | }
|
1919 | ]
|
1920 | },
|
1921 | "context": {
|
1922 | "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.",
|
1923 | "type": "string",
|
1924 | "absolutePath": true
|
1925 | },
|
1926 | "dependencies": {
|
1927 | "description": "References to other configurations to depend on.",
|
1928 | "type": "array",
|
1929 | "items": {
|
1930 | "description": "References to another configuration to depend on.",
|
1931 | "type": "string"
|
1932 | }
|
1933 | },
|
1934 | "devServer": {
|
1935 | "description": "Options for the webpack-dev-server",
|
1936 | "type": "object"
|
1937 | },
|
1938 | "devtool": {
|
1939 | "description": "A developer tool to enhance debugging.",
|
1940 | "anyOf": [
|
1941 | {
|
1942 | "type": "string"
|
1943 | },
|
1944 | {
|
1945 | "enum": [false]
|
1946 | }
|
1947 | ]
|
1948 | },
|
1949 | "entry": {
|
1950 | "description": "The entry point(s) of the compilation.",
|
1951 | "anyOf": [
|
1952 | {
|
1953 | "$ref": "#/definitions/Entry"
|
1954 | }
|
1955 | ]
|
1956 | },
|
1957 | "externals": {
|
1958 | "description": "Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.",
|
1959 | "anyOf": [
|
1960 | {
|
1961 | "$ref": "#/definitions/Externals"
|
1962 | }
|
1963 | ]
|
1964 | },
|
1965 | "loader": {
|
1966 | "description": "Custom values available in the loader context.",
|
1967 | "type": "object"
|
1968 | },
|
1969 | "mode": {
|
1970 | "description": "Enable production optimizations or development hints.",
|
1971 | "enum": ["development", "production", "none"]
|
1972 | },
|
1973 | "module": {
|
1974 | "description": "Options affecting the normal modules (`NormalModuleFactory`).",
|
1975 | "anyOf": [
|
1976 | {
|
1977 | "$ref": "#/definitions/ModuleOptions"
|
1978 | }
|
1979 | ]
|
1980 | },
|
1981 | "name": {
|
1982 | "description": "Name of the configuration. Used when loading multiple configurations.",
|
1983 | "type": "string"
|
1984 | },
|
1985 | "node": {
|
1986 | "description": "Include polyfills or mocks for various node stuff.",
|
1987 | "anyOf": [
|
1988 | {
|
1989 | "enum": [false]
|
1990 | },
|
1991 | {
|
1992 | "$ref": "#/definitions/NodeOptions"
|
1993 | }
|
1994 | ]
|
1995 | },
|
1996 | "optimization": {
|
1997 | "description": "Enables/Disables integrated optimizations",
|
1998 | "anyOf": [
|
1999 | {
|
2000 | "$ref": "#/definitions/OptimizationOptions"
|
2001 | }
|
2002 | ]
|
2003 | },
|
2004 | "output": {
|
2005 | "description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.",
|
2006 | "anyOf": [
|
2007 | {
|
2008 | "$ref": "#/definitions/OutputOptions"
|
2009 | }
|
2010 | ]
|
2011 | },
|
2012 | "parallelism": {
|
2013 | "description": "The number of parallel processed modules in the compilation.",
|
2014 | "type": "number",
|
2015 | "minimum": 1
|
2016 | },
|
2017 | "performance": {
|
2018 | "description": "Configuration for web performance recommendations.",
|
2019 | "anyOf": [
|
2020 | {
|
2021 | "enum": [false]
|
2022 | },
|
2023 | {
|
2024 | "$ref": "#/definitions/PerformanceOptions"
|
2025 | }
|
2026 | ]
|
2027 | },
|
2028 | "plugins": {
|
2029 | "description": "Add additional plugins to the compiler.",
|
2030 | "type": "array",
|
2031 | "items": {
|
2032 | "description": "Plugin of type object or instanceof Function",
|
2033 | "anyOf": [
|
2034 | {
|
2035 | "$ref": "#/definitions/WebpackPluginInstance"
|
2036 | },
|
2037 | {
|
2038 | "$ref": "#/definitions/WebpackPluginFunction"
|
2039 | }
|
2040 | ]
|
2041 | }
|
2042 | },
|
2043 | "profile": {
|
2044 | "description": "Capture timing information for each module.",
|
2045 | "type": "boolean"
|
2046 | },
|
2047 | "recordsInputPath": {
|
2048 | "description": "Store compiler state to a json file.",
|
2049 | "type": "string",
|
2050 | "absolutePath": true
|
2051 | },
|
2052 | "recordsOutputPath": {
|
2053 | "description": "Load compiler state from a json file.",
|
2054 | "type": "string",
|
2055 | "absolutePath": true
|
2056 | },
|
2057 | "recordsPath": {
|
2058 | "description": "Store/Load compiler state from/to a json file. This will result in persistent ids of modules and chunks. An absolute path is expected. `recordsPath` is used for `recordsInputPath` and `recordsOutputPath` if they left undefined.",
|
2059 | "type": "string",
|
2060 | "absolutePath": true
|
2061 | },
|
2062 | "resolve": {
|
2063 | "description": "Options for the resolver",
|
2064 | "anyOf": [
|
2065 | {
|
2066 | "$ref": "#/definitions/ResolveOptions"
|
2067 | }
|
2068 | ]
|
2069 | },
|
2070 | "resolveLoader": {
|
2071 | "description": "Options for the resolver when resolving loaders",
|
2072 | "anyOf": [
|
2073 | {
|
2074 | "$ref": "#/definitions/ResolveOptions"
|
2075 | }
|
2076 | ]
|
2077 | },
|
2078 | "serve": {
|
2079 | "description": "Options for webpack-serve",
|
2080 | "type": "object"
|
2081 | },
|
2082 | "stats": {
|
2083 | "description": "Used by the webpack CLI program to pass stats options.",
|
2084 | "anyOf": [
|
2085 | {
|
2086 | "$ref": "#/definitions/StatsOptions"
|
2087 | },
|
2088 | {
|
2089 | "type": "boolean"
|
2090 | },
|
2091 | {
|
2092 | "enum": [
|
2093 | "none",
|
2094 | "errors-only",
|
2095 | "minimal",
|
2096 | "normal",
|
2097 | "detailed",
|
2098 | "verbose"
|
2099 | ]
|
2100 | }
|
2101 | ]
|
2102 | },
|
2103 | "target": {
|
2104 | "description": "Environment to build for",
|
2105 | "anyOf": [
|
2106 | {
|
2107 | "enum": [
|
2108 | "web",
|
2109 | "webworker",
|
2110 | "node",
|
2111 | "async-node",
|
2112 | "node-webkit",
|
2113 | "electron-main",
|
2114 | "electron-renderer"
|
2115 | ]
|
2116 | },
|
2117 | {
|
2118 | "instanceof": "Function",
|
2119 | "tsType": "((compiler: import('../lib/Compiler')) => void)"
|
2120 | }
|
2121 | ]
|
2122 | },
|
2123 | "watch": {
|
2124 | "description": "Enter watch mode, which rebuilds on file change.",
|
2125 | "type": "boolean"
|
2126 | },
|
2127 | "watchOptions": {
|
2128 | "description": "Options for the watcher",
|
2129 | "type": "object",
|
2130 | "additionalProperties": false,
|
2131 | "properties": {
|
2132 | "aggregateTimeout": {
|
2133 | "description": "Delay the rebuilt after the first change. Value is a time in ms.",
|
2134 | "type": "number"
|
2135 | },
|
2136 | "ignored": {
|
2137 | "description": "Ignore some files from watching"
|
2138 | },
|
2139 | "poll": {
|
2140 | "description": "Enable polling mode for watching",
|
2141 | "anyOf": [
|
2142 | {
|
2143 | "description": "`true`: use polling.",
|
2144 | "type": "boolean"
|
2145 | },
|
2146 | {
|
2147 | "description": "`number`: use polling with specified interval.",
|
2148 | "type": "number"
|
2149 | }
|
2150 | ]
|
2151 | },
|
2152 | "stdin": {
|
2153 | "description": "Stop watching when stdin stream has ended",
|
2154 | "type": "boolean"
|
2155 | }
|
2156 | }
|
2157 | }
|
2158 | }
|
2159 | }
|