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