webpack 3.8.0 → 3.10.0

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.
@@ -3,6 +3,7 @@
3
3
  "definitions": {
4
4
  "common.arrayOfStringOrStringArrayValues": {
5
5
  "items": {
6
+ "description": "string or array of strings",
6
7
  "anyOf": [
7
8
  {
8
9
  "minLength": 1,
@@ -10,6 +11,7 @@
10
11
  },
11
12
  {
12
13
  "items": {
14
+ "description": "A non-empty string",
13
15
  "minLength": 1,
14
16
  "type": "string"
15
17
  },
@@ -21,6 +23,7 @@
21
23
  },
22
24
  "common.arrayOfStringValues": {
23
25
  "items": {
26
+ "description": "A non-empty string",
24
27
  "minLength": 1,
25
28
  "type": "string"
26
29
  },
@@ -28,6 +31,7 @@
28
31
  },
29
32
  "common.nonEmptyArrayOfUniqueStringValues": {
30
33
  "items": {
34
+ "description": "A non-empty string",
31
35
  "minLength": 1,
32
36
  "type": "string"
33
37
  },
@@ -36,11 +40,11 @@
36
40
  "uniqueItems": true
37
41
  },
38
42
  "entry": {
39
- "description": "The entry point(s) of the compilation.",
40
43
  "oneOf": [
41
44
  {
42
45
  "minProperties": 1,
43
46
  "additionalProperties": {
47
+ "description": "An entry point with name",
44
48
  "oneOf": [
45
49
  {
46
50
  "description": "The string is resolved to a module which is loaded upon startup.",
@@ -49,7 +53,11 @@
49
53
  },
50
54
  {
51
55
  "description": "All modules are loaded upon startup. The last one is exported.",
52
- "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
56
+ "anyOf": [
57
+ {
58
+ "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
59
+ }
60
+ ]
53
61
  }
54
62
  ]
55
63
  },
@@ -57,20 +65,20 @@
57
65
  "type": "object"
58
66
  },
59
67
  {
60
- "description": "The string is resolved to a module which is loaded upon startup.",
68
+ "description": "An entry point without name. The string is resolved to a module which is loaded upon startup.",
61
69
  "minLength": 1,
62
70
  "type": "string"
63
71
  },
64
72
  {
65
- "allOf": [
73
+ "description": "An entry point without name. All modules are loaded upon startup. The last one is exported.",
74
+ "anyOf": [
66
75
  {
67
76
  "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
68
77
  }
69
- ],
70
- "description": "All modules are loaded upon startup. The last one is exported."
78
+ ]
71
79
  },
72
80
  {
73
- "description": "function returning an entry object or a promise.",
81
+ "description": "A Function returning an entry object, an entry string, an entry array or a promise to these things.",
74
82
  "instanceof": "Function"
75
83
  }
76
84
  ]
@@ -83,6 +91,7 @@
83
91
  },
84
92
  {
85
93
  "additionalProperties": {
94
+ "description": "The dependency used for the external",
86
95
  "anyOf": [
87
96
  {
88
97
  "type": "string"
@@ -108,24 +117,30 @@
108
117
  },
109
118
  {
110
119
  "items": {
111
- "$ref": "#/definitions/externals"
120
+ "description": "External configuration",
121
+ "anyOf": [
122
+ {
123
+ "$ref": "#/definitions/externals"
124
+ }
125
+ ]
112
126
  },
113
127
  "type": "array"
114
128
  }
115
- ],
116
- "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`."
129
+ ]
117
130
  },
118
131
  "module": {
119
132
  "additionalProperties": false,
120
- "description": "Options affecting the normal modules (`NormalModuleFactory`).",
121
133
  "properties": {
122
134
  "exprContextCritical": {
135
+ "description": "Enable warnings for full dynamic dependencies",
123
136
  "type": "boolean"
124
137
  },
125
138
  "exprContextRecursive": {
139
+ "description": "Enable recursive directory lookup for full dynamic dependencies",
126
140
  "type": "boolean"
127
141
  },
128
142
  "exprContextRegExp": {
143
+ "description": "Sets the default regular expression for full dynamic dependencies",
129
144
  "anyOf": [
130
145
  {
131
146
  "type": "boolean"
@@ -136,21 +151,23 @@
136
151
  ]
137
152
  },
138
153
  "exprContextRequest": {
154
+ "description": "Set the default request for full dynamic dependencies",
139
155
  "type": "string"
140
156
  },
141
157
  "loaders": {
142
- "allOf": [
158
+ "description": "An array of automatically applied loaders.",
159
+ "anyOf": [
143
160
  {
144
161
  "$ref": "#/definitions/ruleSet-rules"
145
162
  }
146
- ],
147
- "description": "An array of automatically applied loaders."
163
+ ]
148
164
  },
149
165
  "noParse": {
150
166
  "description": "Don't parse files matching. It's matched against the full resolved request.",
151
167
  "anyOf": [
152
168
  {
153
169
  "items": {
170
+ "description": "A regular expression, when matched the module is not parsed",
154
171
  "instanceof": "RegExp"
155
172
  },
156
173
  "minItems": 1,
@@ -164,6 +181,7 @@
164
181
  },
165
182
  {
166
183
  "items": {
184
+ "description": "An absolute path, when the module starts with this path it is not parsed",
167
185
  "type": "string",
168
186
  "absolutePath": true
169
187
  },
@@ -185,12 +203,15 @@
185
203
  "description": "An array of rules applied for modules."
186
204
  },
187
205
  "unknownContextCritical": {
206
+ "description": "Enable warnings when using the require function in a not statically analyse-able way",
188
207
  "type": "boolean"
189
208
  },
190
209
  "unknownContextRecursive": {
210
+ "description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way",
191
211
  "type": "boolean"
192
212
  },
193
213
  "unknownContextRegExp": {
214
+ "description": "Sets the regular expression when using the require function in a not statically analyse-able way",
194
215
  "anyOf": [
195
216
  {
196
217
  "type": "boolean"
@@ -201,9 +222,11 @@
201
222
  ]
202
223
  },
203
224
  "unknownContextRequest": {
225
+ "description": "Sets the request when using the require function in a not statically analyse-able way",
204
226
  "type": "string"
205
227
  },
206
228
  "unsafeCache": {
229
+ "description": "Cache the resolving of module requests",
207
230
  "anyOf": [
208
231
  {
209
232
  "type": "boolean"
@@ -214,18 +237,23 @@
214
237
  ]
215
238
  },
216
239
  "wrappedContextCritical": {
240
+ "description": "Enable warnings for partial dynamic dependencies",
217
241
  "type": "boolean"
218
242
  },
219
243
  "wrappedContextRecursive": {
244
+ "description": "Enable recursive directory lookup for partial dynamic dependencies",
220
245
  "type": "boolean"
221
246
  },
222
247
  "wrappedContextRegExp": {
248
+ "description": "Set the inner regular expression for partial dynamic dependencies",
223
249
  "instanceof": "RegExp"
224
250
  },
225
251
  "strictExportPresence": {
252
+ "description": "Emit errors instead of warnings when imported names don't exist in imported module",
226
253
  "type": "boolean"
227
254
  },
228
255
  "strictThisContextOnImports": {
256
+ "description": "Handle the this context correctly according to the spec for namespace objects",
229
257
  "type": "boolean"
230
258
  }
231
259
  },
@@ -233,7 +261,6 @@
233
261
  },
234
262
  "output": {
235
263
  "additionalProperties": false,
236
- "description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.",
237
264
  "properties": {
238
265
  "auxiliaryComment": {
239
266
  "description": "Add a comment in the UMD wrapper.",
@@ -247,15 +274,19 @@
247
274
  "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
248
275
  "properties": {
249
276
  "amd": {
277
+ "description": "Set comment for `amd` section in UMD",
250
278
  "type": "string"
251
279
  },
252
280
  "commonjs": {
281
+ "description": "Set comment for `commonjs` (exports) section in UMD",
253
282
  "type": "string"
254
283
  },
255
284
  "commonjs2": {
285
+ "description": "Set comment for `commonjs2` (module.exports) section in UMD",
256
286
  "type": "string"
257
287
  },
258
288
  "root": {
289
+ "description": "Set comment for `root` (global variable) section in UMD",
259
290
  "type": "string"
260
291
  }
261
292
  },
@@ -300,17 +331,6 @@
300
331
  },
301
332
  {
302
333
  "description": "An object similar to `module.loaders` enables it for specific files.",
303
- "properties": {
304
- "exclude": {
305
- "type": "string"
306
- },
307
- "include": {
308
- "type": "string"
309
- },
310
- "test": {
311
- "type": "string"
312
- }
313
- },
314
334
  "type": "object"
315
335
  }
316
336
  ]
@@ -332,18 +352,25 @@
332
352
  "absolutePath": false
333
353
  },
334
354
  "hashDigest": {
335
- "minLength": 1,
336
- "type": "string"
355
+ "description": "Digest type used for the hash",
356
+ "enum": [
357
+ "latin1",
358
+ "hex",
359
+ "base64"
360
+ ]
337
361
  },
338
362
  "hashDigestLength": {
363
+ "description": "Number of chars which are used for the hash",
339
364
  "minimum": 1,
340
365
  "type": "number"
341
366
  },
342
367
  "hashFunction": {
368
+ "description": "Algorithm used for generation the hash (see node.js crypto package)",
343
369
  "minLength": 1,
344
370
  "type": "string"
345
371
  },
346
372
  "hashSalt": {
373
+ "description": "Any string which is added to the hash to salt it",
347
374
  "minLength": 1,
348
375
  "type": "string"
349
376
  },
@@ -372,22 +399,34 @@
372
399
  },
373
400
  {
374
401
  "items": {
402
+ "description": "A part of the library name",
375
403
  "type": "string"
376
404
  },
377
405
  "type": "array"
378
406
  },
379
407
  {
380
408
  "type": "object",
409
+ "additionalProperties": false,
381
410
  "properties": {
382
- "root": { "type": "string" },
383
- "amd": { "type": "string" },
384
- "commonjs": { "type": "string" }
411
+ "root": {
412
+ "description": "Name of the property exposed globally by a UMD library",
413
+ "type": "string"
414
+ },
415
+ "amd": {
416
+ "description": "Name of the exposed AMD library in the UMD",
417
+ "type": "string"
418
+ },
419
+ "commonjs": {
420
+ "description": "Name of the exposed commonjs export in the UMD",
421
+ "type": "string"
422
+ }
385
423
  }
386
424
  }
387
425
  ],
388
426
  "description": "If set, export the bundle as library. `output.library` is the name."
389
427
  },
390
428
  "libraryTarget": {
429
+ "description": "Type of library",
391
430
  "enum": [
392
431
  "var",
393
432
  "assign",
@@ -404,6 +443,7 @@
404
443
  ]
405
444
  },
406
445
  "libraryExport": {
446
+ "description": "Specify which export should be exposed as library",
407
447
  "anyOf": [
408
448
  {
409
449
  "type": "string"
@@ -450,24 +490,30 @@
450
490
  "additionalProperties": false,
451
491
  "properties": {
452
492
  "alias": {
493
+ "description": "Redirect module requests",
453
494
  "anyOf": [
454
495
  {
455
496
  "additionalProperties": {
497
+ "description": "New request",
456
498
  "type": "string"
457
499
  },
458
500
  "type": "object"
459
501
  },
460
502
  {
461
503
  "items": {
504
+ "description": "Alias configuration",
462
505
  "additionalProperties": false,
463
506
  "properties": {
464
507
  "alias": {
508
+ "description": "New request",
465
509
  "type": "string"
466
510
  },
467
511
  "name": {
512
+ "description": "Request to be redirected",
468
513
  "type": "string"
469
514
  },
470
515
  "onlyModule": {
516
+ "description": "Redirect only exact matching request",
471
517
  "type": "boolean"
472
518
  }
473
519
  },
@@ -478,47 +524,93 @@
478
524
  ]
479
525
  },
480
526
  "aliasFields": {
481
- "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues"
527
+ "description": "Fields in the description file (package.json) which are used to redirect requests inside the module",
528
+ "anyOf": [
529
+ {
530
+ "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues"
531
+ }
532
+ ]
482
533
  },
483
534
  "cachePredicate": {
535
+ "description": "Predicate function to decide which requests should be cached",
484
536
  "instanceof": "Function"
485
537
  },
486
538
  "cacheWithContext": {
539
+ "description": "Include the context information in the cache identifier when caching",
487
540
  "type": "boolean"
488
541
  },
489
542
  "descriptionFiles": {
490
- "$ref": "#/definitions/common.arrayOfStringValues"
543
+ "description": "Filenames used to find a description file",
544
+ "anyOf": [
545
+ {
546
+ "$ref": "#/definitions/common.arrayOfStringValues"
547
+ }
548
+ ]
491
549
  },
492
550
  "enforceExtension": {
551
+ "description": "Enforce using one of the extensions from the extensions option",
493
552
  "type": "boolean"
494
553
  },
495
554
  "enforceModuleExtension": {
555
+ "description": "Enforce using one of the module extensions from the moduleExtensions option",
496
556
  "type": "boolean"
497
557
  },
498
558
  "extensions": {
499
- "$ref": "#/definitions/common.arrayOfStringValues"
559
+ "description": "Extensions added to the request when trying to find the file",
560
+ "anyOf": [
561
+ {
562
+ "$ref": "#/definitions/common.arrayOfStringValues"
563
+ }
564
+ ]
565
+ },
566
+ "fileSystem": {
567
+ "description": "Filesystem for the resolver"
500
568
  },
501
- "fileSystem": {},
502
569
  "mainFields": {
503
- "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues"
570
+ "description": "Field names from the description file (package.json) which are used to find the default entry point",
571
+ "anyOf": [
572
+ {
573
+ "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues"
574
+ }
575
+ ]
504
576
  },
505
577
  "mainFiles": {
506
- "$ref": "#/definitions/common.arrayOfStringValues"
578
+ "description": "Filenames used to find the default entry point if there is no description file or main field",
579
+ "anyOf": [
580
+ {
581
+ "$ref": "#/definitions/common.arrayOfStringValues"
582
+ }
583
+ ]
507
584
  },
508
585
  "moduleExtensions": {
509
- "$ref": "#/definitions/common.arrayOfStringValues"
586
+ "description": "Extenstions added to the module request when trying to find the module",
587
+ "anyOf": [
588
+ {
589
+ "$ref": "#/definitions/common.arrayOfStringValues"
590
+ }
591
+ ]
510
592
  },
511
593
  "modules": {
512
- "$ref": "#/definitions/common.arrayOfStringValues"
594
+ "description": "Folder names or directory paths where to find modules",
595
+ "anyOf": [
596
+ {
597
+ "$ref": "#/definitions/common.arrayOfStringValues"
598
+ }
599
+ ]
513
600
  },
514
601
  "plugins": {
602
+ "description": "Plugins for the resolver",
515
603
  "type": "array"
516
604
  },
517
- "resolver": {},
605
+ "resolver": {
606
+ "description": "Custom resolver"
607
+ },
518
608
  "symlinks": {
609
+ "description": "Enable resolving symlinks to the original location",
519
610
  "type": "boolean"
520
611
  },
521
612
  "unsafeCache": {
613
+ "description": "Enable caching of successfully resolved requests",
522
614
  "anyOf": [
523
615
  {
524
616
  "type": "boolean"
@@ -530,6 +622,7 @@
530
622
  ]
531
623
  },
532
624
  "useSyncFileSystemCalls": {
625
+ "description": "Use synchronous filesystem calls for the resolver",
533
626
  "type": "boolean"
534
627
  }
535
628
  },
@@ -554,22 +647,52 @@
554
647
  "additionalProperties": false,
555
648
  "properties": {
556
649
  "and": {
557
- "$ref": "#/definitions/ruleSet-conditions"
650
+ "description": "Logical AND",
651
+ "anyOf": [
652
+ {
653
+ "$ref": "#/definitions/ruleSet-conditions"
654
+ }
655
+ ]
558
656
  },
559
657
  "exclude": {
560
- "$ref": "#/definitions/ruleSet-condition"
658
+ "description": "Exclude all modules matching any of these conditions",
659
+ "anyOf": [
660
+ {
661
+ "$ref": "#/definitions/ruleSet-condition"
662
+ }
663
+ ]
561
664
  },
562
665
  "include": {
563
- "$ref": "#/definitions/ruleSet-condition"
666
+ "description": "Exclude all modules matching not any of these conditions",
667
+ "anyOf": [
668
+ {
669
+ "$ref": "#/definitions/ruleSet-condition"
670
+ }
671
+ ]
564
672
  },
565
673
  "not": {
566
- "$ref": "#/definitions/ruleSet-conditions"
674
+ "description": "Logical NOT",
675
+ "anyOf": [
676
+ {
677
+ "$ref": "#/definitions/ruleSet-conditions"
678
+ }
679
+ ]
567
680
  },
568
681
  "or": {
569
- "$ref": "#/definitions/ruleSet-conditions"
682
+ "description": "Logical OR",
683
+ "anyOf": [
684
+ {
685
+ "$ref": "#/definitions/ruleSet-conditions"
686
+ }
687
+ ]
570
688
  },
571
689
  "test": {
572
- "$ref": "#/definitions/ruleSet-condition"
690
+ "description": "Exclude all modules matching any of these conditions",
691
+ "anyOf": [
692
+ {
693
+ "$ref": "#/definitions/ruleSet-condition"
694
+ }
695
+ ]
573
696
  }
574
697
  },
575
698
  "type": "object"
@@ -578,7 +701,12 @@
578
701
  },
579
702
  "ruleSet-conditions": {
580
703
  "items": {
581
- "$ref": "#/definitions/ruleSet-condition"
704
+ "description": "A rule condition",
705
+ "anyOf": [
706
+ {
707
+ "$ref": "#/definitions/ruleSet-condition"
708
+ }
709
+ ]
582
710
  },
583
711
  "type": "array"
584
712
  },
@@ -600,12 +728,14 @@
600
728
  "additionalProperties": false,
601
729
  "properties": {
602
730
  "enforce": {
731
+ "description": "Enforce this rule as pre or post step",
603
732
  "enum": [
604
733
  "pre",
605
734
  "post"
606
735
  ]
607
736
  },
608
737
  "exclude": {
738
+ "description": "Shortcut for resource.exclude",
609
739
  "allOf": [
610
740
  {
611
741
  "$ref": "#/definitions/ruleSet-condition"
@@ -616,6 +746,7 @@
616
746
  ]
617
747
  },
618
748
  "include": {
749
+ "description": "Shortcut for resource.include",
619
750
  "allOf": [
620
751
  {
621
752
  "$ref": "#/definitions/ruleSet-condition"
@@ -626,6 +757,7 @@
626
757
  ]
627
758
  },
628
759
  "issuer": {
760
+ "description": "Match the issuer of the module (The module pointing to this module)",
629
761
  "allOf": [
630
762
  {
631
763
  "$ref": "#/definitions/ruleSet-condition"
@@ -636,6 +768,7 @@
636
768
  ]
637
769
  },
638
770
  "loader": {
771
+ "description": "Shortcut for use.loader",
639
772
  "anyOf": [
640
773
  {
641
774
  "$ref": "#/definitions/ruleSet-loader"
@@ -646,22 +779,44 @@
646
779
  ]
647
780
  },
648
781
  "loaders": {
649
- "$ref": "#/definitions/ruleSet-use"
782
+ "description": "Shortcut for use.loader",
783
+ "anyOf": [
784
+ {
785
+ "$ref": "#/definitions/ruleSet-use"
786
+ }
787
+ ]
650
788
  },
651
789
  "oneOf": {
652
- "$ref": "#/definitions/ruleSet-rules"
790
+ "description": "Only execute the first matching rule in this array",
791
+ "anyOf": [
792
+ {
793
+ "$ref": "#/definitions/ruleSet-rules"
794
+ }
795
+ ]
653
796
  },
654
797
  "options": {
655
- "$ref": "#/definitions/ruleSet-query"
798
+ "description": "Shortcut for use.options",
799
+ "anyOf": [
800
+ {
801
+ "$ref": "#/definitions/ruleSet-query"
802
+ }
803
+ ]
656
804
  },
657
805
  "parser": {
806
+ "description": "Options for parsing",
658
807
  "additionalProperties": true,
659
808
  "type": "object"
660
809
  },
661
810
  "query": {
662
- "$ref": "#/definitions/ruleSet-query"
811
+ "description": "Shortcut for use.query",
812
+ "anyOf": [
813
+ {
814
+ "$ref": "#/definitions/ruleSet-query"
815
+ }
816
+ ]
663
817
  },
664
818
  "resource": {
819
+ "description": "Match the resource path of the module",
665
820
  "allOf": [
666
821
  {
667
822
  "$ref": "#/definitions/ruleSet-condition"
@@ -672,15 +827,31 @@
672
827
  ]
673
828
  },
674
829
  "resourceQuery": {
675
- "$ref": "#/definitions/ruleSet-condition"
830
+ "description": "Match the resource query of the module",
831
+ "anyOf": [
832
+ {
833
+ "$ref": "#/definitions/ruleSet-condition"
834
+ }
835
+ ]
676
836
  },
677
837
  "compiler": {
678
- "$ref": "#/definitions/ruleSet-condition"
838
+ "description": "Match the child compiler name",
839
+ "anyOf": [
840
+ {
841
+ "$ref": "#/definitions/ruleSet-condition"
842
+ }
843
+ ]
679
844
  },
680
845
  "rules": {
681
- "$ref": "#/definitions/ruleSet-rules"
846
+ "description": "Match and execute these rules when this rule is matched",
847
+ "anyOf": [
848
+ {
849
+ "$ref": "#/definitions/ruleSet-rules"
850
+ }
851
+ ]
682
852
  },
683
853
  "test": {
854
+ "description": "Shortcut for resource.test",
684
855
  "allOf": [
685
856
  {
686
857
  "$ref": "#/definitions/ruleSet-condition"
@@ -691,14 +862,24 @@
691
862
  ]
692
863
  },
693
864
  "use": {
694
- "$ref": "#/definitions/ruleSet-use"
865
+ "description": "Modifiers applied to the module when rule is matched",
866
+ "anyOf": [
867
+ {
868
+ "$ref": "#/definitions/ruleSet-use"
869
+ }
870
+ ]
695
871
  }
696
872
  },
697
873
  "type": "object"
698
874
  },
699
875
  "ruleSet-rules": {
700
876
  "items": {
701
- "$ref": "#/definitions/ruleSet-rule"
877
+ "description": "A rule",
878
+ "anyOf": [
879
+ {
880
+ "$ref": "#/definitions/ruleSet-rule"
881
+ }
882
+ ]
702
883
  },
703
884
  "type": "array"
704
885
  },
@@ -712,7 +893,12 @@
712
893
  },
713
894
  {
714
895
  "items": {
715
- "$ref": "#/definitions/ruleSet-use-item"
896
+ "description": "An use item",
897
+ "anyOf": [
898
+ {
899
+ "$ref": "#/definitions/ruleSet-use-item"
900
+ }
901
+ ]
716
902
  },
717
903
  "type": "array"
718
904
  }
@@ -730,13 +916,28 @@
730
916
  "additionalProperties": false,
731
917
  "properties": {
732
918
  "loader": {
733
- "$ref": "#/definitions/ruleSet-loader"
919
+ "description": "Loader name",
920
+ "anyOf": [
921
+ {
922
+ "$ref": "#/definitions/ruleSet-loader"
923
+ }
924
+ ]
734
925
  },
735
926
  "options": {
736
- "$ref": "#/definitions/ruleSet-query"
927
+ "description": "Loader options",
928
+ "anyOf": [
929
+ {
930
+ "$ref": "#/definitions/ruleSet-query"
931
+ }
932
+ ]
737
933
  },
738
934
  "query": {
739
- "$ref": "#/definitions/ruleSet-query"
935
+ "description": "Loader query",
936
+ "anyOf": [
937
+ {
938
+ "$ref": "#/definitions/ruleSet-query"
939
+ }
940
+ ]
740
941
  }
741
942
  },
742
943
  "type": "object"
@@ -764,7 +965,12 @@
764
965
  {
765
966
  "type": "array",
766
967
  "items": {
767
- "$ref": "#/definitions/filter-item-types"
968
+ "description": "Rule to filter",
969
+ "anyOf": [
970
+ {
971
+ "$ref": "#/definitions/filter-item-types"
972
+ }
973
+ ]
768
974
  }
769
975
  }
770
976
  ]
@@ -799,11 +1005,13 @@
799
1005
  "dependencies": {
800
1006
  "description": "References to other configurations to depend on.",
801
1007
  "items": {
1008
+ "description": "References to another configuration to depend on.",
802
1009
  "type": "string"
803
1010
  },
804
1011
  "type": "array"
805
1012
  },
806
1013
  "devServer": {
1014
+ "description": "Options for the webpack-dev-server",
807
1015
  "type": "object"
808
1016
  },
809
1017
  "devtool": {
@@ -820,17 +1028,32 @@
820
1028
  ]
821
1029
  },
822
1030
  "entry": {
823
- "$ref": "#/definitions/entry"
1031
+ "description": "The entry point(s) of the compilation.",
1032
+ "anyOf": [
1033
+ {
1034
+ "$ref": "#/definitions/entry"
1035
+ }
1036
+ ]
824
1037
  },
825
1038
  "externals": {
826
- "$ref": "#/definitions/externals"
1039
+ "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`.",
1040
+ "anyOf": [
1041
+ {
1042
+ "$ref": "#/definitions/externals"
1043
+ }
1044
+ ]
827
1045
  },
828
1046
  "loader": {
829
1047
  "description": "Custom values available in the loader context.",
830
1048
  "type": "object"
831
1049
  },
832
1050
  "module": {
833
- "$ref": "#/definitions/module"
1051
+ "description": "Options affecting the normal modules (`NormalModuleFactory`).",
1052
+ "anyOf": [
1053
+ {
1054
+ "$ref": "#/definitions/module"
1055
+ }
1056
+ ]
834
1057
  },
835
1058
  "name": {
836
1059
  "description": "Name of the configuration. Used when loading multiple configurations.",
@@ -846,6 +1069,7 @@
846
1069
  },
847
1070
  {
848
1071
  "additionalProperties": {
1072
+ "description": "Include a polyfill for the node.js module",
849
1073
  "enum": [
850
1074
  false,
851
1075
  true,
@@ -855,6 +1079,7 @@
855
1079
  },
856
1080
  "properties": {
857
1081
  "Buffer": {
1082
+ "description": "Include a polyfill for the 'Buffer' variable",
858
1083
  "enum": [
859
1084
  false,
860
1085
  true,
@@ -862,6 +1087,7 @@
862
1087
  ]
863
1088
  },
864
1089
  "__dirname": {
1090
+ "description": "Include a polyfill for the '__dirname' variable",
865
1091
  "enum": [
866
1092
  false,
867
1093
  true,
@@ -869,6 +1095,7 @@
869
1095
  ]
870
1096
  },
871
1097
  "__filename": {
1098
+ "description": "Include a polyfill for the '__filename' variable",
872
1099
  "enum": [
873
1100
  false,
874
1101
  true,
@@ -876,6 +1103,7 @@
876
1103
  ]
877
1104
  },
878
1105
  "console": {
1106
+ "description": "Include a polyfill for the 'console' variable",
879
1107
  "enum": [
880
1108
  false,
881
1109
  true,
@@ -883,9 +1111,11 @@
883
1111
  ]
884
1112
  },
885
1113
  "global": {
1114
+ "description": "Include a polyfill for the 'global' variable",
886
1115
  "type": "boolean"
887
1116
  },
888
1117
  "process": {
1118
+ "description": "Include a polyfill for the 'process' variable",
889
1119
  "enum": [
890
1120
  false,
891
1121
  true,
@@ -898,7 +1128,12 @@
898
1128
  ]
899
1129
  },
900
1130
  "output": {
901
- "$ref": "#/definitions/output"
1131
+ "description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.",
1132
+ "anyOf": [
1133
+ {
1134
+ "$ref": "#/definitions/output"
1135
+ }
1136
+ ]
902
1137
  },
903
1138
  "parallelism": {
904
1139
  "description": "The number of parallel processed modules in the compilation.",
@@ -965,10 +1200,20 @@
965
1200
  "absolutePath": true
966
1201
  },
967
1202
  "resolve": {
968
- "$ref": "#/definitions/resolve"
1203
+ "description": "Options for the resolver",
1204
+ "anyOf": [
1205
+ {
1206
+ "$ref": "#/definitions/resolve"
1207
+ }
1208
+ ]
969
1209
  },
970
1210
  "resolveLoader": {
971
- "$ref": "#/definitions/resolve"
1211
+ "description": "Options for the resolver when resolving loaders",
1212
+ "anyOf": [
1213
+ {
1214
+ "$ref": "#/definitions/resolve"
1215
+ }
1216
+ ]
972
1217
  },
973
1218
  "stats": {
974
1219
  "description": "Used by the webpack CLI program to pass stats options.",
@@ -977,6 +1222,10 @@
977
1222
  "type": "object",
978
1223
  "additionalProperties": false,
979
1224
  "properties": {
1225
+ "all": {
1226
+ "type": "boolean",
1227
+ "description": "fallback value for stats options when an option is not defined (has precedence over local webpack defaults)"
1228
+ },
980
1229
  "context": {
981
1230
  "type": "string",
982
1231
  "description": "context directory for request shortening",
@@ -994,6 +1243,14 @@
994
1243
  "type": "boolean",
995
1244
  "description": "add timing information"
996
1245
  },
1246
+ "performance": {
1247
+ "type": "boolean",
1248
+ "description": "add performance hint flags"
1249
+ },
1250
+ "depth": {
1251
+ "type": "boolean",
1252
+ "description": "add module depth in module graph"
1253
+ },
997
1254
  "assets": {
998
1255
  "type": "boolean",
999
1256
  "description": "add assets information"
@@ -1003,6 +1260,7 @@
1003
1260
  "description": "add --env information"
1004
1261
  },
1005
1262
  "colors": {
1263
+ "description": "Enables/Disables colorful output",
1006
1264
  "oneOf": [
1007
1265
  {
1008
1266
  "type": "boolean",
@@ -1013,21 +1271,27 @@
1013
1271
  "additionalProperties": false,
1014
1272
  "properties": {
1015
1273
  "bold": {
1274
+ "description": "Custom color for bold text",
1016
1275
  "type": "string"
1017
1276
  },
1018
1277
  "red": {
1278
+ "description": "Custom color for red text",
1019
1279
  "type": "string"
1020
1280
  },
1021
1281
  "green": {
1282
+ "description": "Custom color for green text",
1022
1283
  "type": "string"
1023
1284
  },
1024
1285
  "cyan": {
1286
+ "description": "Custom color for cyan text",
1025
1287
  "type": "string"
1026
1288
  },
1027
1289
  "magenta": {
1290
+ "description": "Custom color for magenta text",
1028
1291
  "type": "string"
1029
1292
  },
1030
1293
  "yellow": {
1294
+ "description": "Custom color for yellow text",
1031
1295
  "type": "string"
1032
1296
  }
1033
1297
  }
@@ -1070,21 +1334,45 @@
1070
1334
  "type": "boolean",
1071
1335
  "description": "add the source code of modules"
1072
1336
  },
1337
+ "warnings": {
1338
+ "type": "boolean",
1339
+ "description": "add warnings"
1340
+ },
1341
+ "errors": {
1342
+ "type": "boolean",
1343
+ "description": "add errors"
1344
+ },
1073
1345
  "warningsFilter": {
1074
1346
  "description": "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions",
1075
- "$ref": "#/definitions/filter-types"
1347
+ "anyOf": [
1348
+ {
1349
+ "$ref": "#/definitions/filter-types"
1350
+ }
1351
+ ]
1076
1352
  },
1077
1353
  "excludeAssets": {
1078
1354
  "description": "Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions",
1079
- "$ref": "#/definitions/filter-types"
1355
+ "anyOf": [
1356
+ {
1357
+ "$ref": "#/definitions/filter-types"
1358
+ }
1359
+ ]
1080
1360
  },
1081
1361
  "excludeModules": {
1082
1362
  "description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps or Functions",
1083
- "$ref": "#/definitions/filter-types"
1363
+ "anyOf": [
1364
+ {
1365
+ "$ref": "#/definitions/filter-types"
1366
+ }
1367
+ ]
1084
1368
  },
1085
1369
  "exclude": {
1086
1370
  "description": "Please use excludeModules instead.",
1087
- "$ref": "#/definitions/filter-types"
1371
+ "anyOf": [
1372
+ {
1373
+ "$ref": "#/definitions/filter-types"
1374
+ }
1375
+ ]
1088
1376
  },
1089
1377
  "entrypoints": {
1090
1378
  "type": "boolean",
@@ -1148,6 +1436,7 @@
1148
1436
  ]
1149
1437
  },
1150
1438
  "target": {
1439
+ "description": "Environment to build for",
1151
1440
  "anyOf": [
1152
1441
  {
1153
1442
  "enum": [
@@ -1172,12 +1461,22 @@
1172
1461
  "type": "boolean"
1173
1462
  },
1174
1463
  "watchOptions": {
1464
+ "description": "Options for the watcher",
1465
+ "additionalProperties": false,
1175
1466
  "properties": {
1176
1467
  "aggregateTimeout": {
1177
1468
  "description": "Delay the rebuilt after the first change. Value is a time in ms.",
1178
1469
  "type": "number"
1179
1470
  },
1471
+ "ignored": {
1472
+ "description": "Ignore some files from watching"
1473
+ },
1474
+ "stdin": {
1475
+ "description": "Stop watching when stdin stream has ended",
1476
+ "type": "boolean"
1477
+ },
1180
1478
  "poll": {
1479
+ "description": "Enable polling mode for watching",
1181
1480
  "anyOf": [
1182
1481
  {
1183
1482
  "description": "`true`: use polling.",