webpack 3.8.1 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +721 -716
- package/bin/webpack.js +12 -8
- package/buildin/.eslintrc +7 -7
- package/buildin/amd-define.js +3 -3
- package/buildin/amd-options.js +2 -2
- package/buildin/global.js +21 -21
- package/buildin/harmony-module.js +24 -24
- package/buildin/module.js +22 -22
- package/buildin/system.js +7 -7
- package/hot/.eslintrc +9 -9
- package/hot/dev-server.js +53 -53
- package/hot/emitter.js +2 -2
- package/hot/log-apply-result.js +38 -38
- package/hot/log.js +44 -44
- package/hot/only-dev-server.js +71 -71
- package/hot/poll.js +34 -34
- package/hot/signal.js +52 -51
- package/lib/APIPlugin.js +45 -45
- package/lib/AsyncDependenciesBlock.js +43 -43
- package/lib/AutomaticPrefetchPlugin.js +36 -36
- package/lib/BannerPlugin.js +4 -2
- package/lib/BasicEvaluatedExpression.js +203 -203
- package/lib/CaseSensitiveModulesWarning.js +49 -49
- package/lib/Chunk.js +2 -2
- package/lib/ChunkRenderError.js +24 -24
- package/lib/ChunkTemplate.js +36 -36
- package/lib/CompatibilityPlugin.js +57 -57
- package/lib/Compilation.js +81 -92
- package/lib/Compiler.js +519 -523
- package/lib/ConstPlugin.js +60 -60
- package/lib/ContextModule.js +431 -431
- package/lib/ContextReplacementPlugin.js +111 -111
- package/lib/DefinePlugin.js +123 -123
- package/lib/DelegatedModule.js +98 -98
- package/lib/DelegatedModuleFactoryPlugin.js +59 -59
- package/lib/DelegatedPlugin.js +30 -30
- package/lib/DependenciesBlockVariable.js +51 -51
- package/lib/DllEntryPlugin.js +37 -37
- package/lib/DllModule.js +58 -58
- package/lib/DllModuleFactory.js +20 -20
- package/lib/DllPlugin.js +38 -38
- package/lib/DllReferencePlugin.js +62 -62
- package/lib/DynamicEntryPlugin.js +59 -59
- package/lib/EntryModuleNotFoundError.js +22 -22
- package/lib/EntryOptionPlugin.js +31 -31
- package/lib/EnvironmentPlugin.js +60 -50
- package/lib/ErrorHelpers.js +31 -31
- package/lib/EvalDevToolModulePlugin.js +22 -22
- package/lib/EvalDevToolModuleTemplatePlugin.js +33 -33
- package/lib/EvalSourceMapDevToolModuleTemplatePlugin.js +75 -75
- package/lib/EvalSourceMapDevToolPlugin.js +32 -32
- package/lib/ExportPropertyMainTemplatePlugin.js +31 -31
- package/lib/ExtendedAPIPlugin.js +47 -47
- package/lib/ExternalModuleFactoryPlugin.js +91 -91
- package/lib/ExternalsPlugin.js +21 -21
- package/lib/FlagDependencyExportsPlugin.js +101 -101
- package/lib/FlagDependencyUsagePlugin.js +1 -1
- package/lib/FunctionModulePlugin.js +24 -24
- package/lib/HashedModuleIdsPlugin.js +42 -42
- package/lib/HotModuleReplacementPlugin.js +5 -5
- package/lib/HotUpdateChunkTemplate.js +31 -31
- package/lib/IgnorePlugin.js +69 -69
- package/lib/JsonpExportMainTemplatePlugin.js +37 -37
- package/lib/JsonpHotUpdateChunkTemplatePlugin.js +27 -27
- package/lib/JsonpMainTemplatePlugin.js +4 -3
- package/lib/JsonpTemplatePlugin.js +21 -21
- package/lib/LibManifestPlugin.js +63 -63
- package/lib/LibraryTemplatePlugin.js +92 -92
- package/lib/LoaderOptionsPlugin.js +36 -36
- package/lib/LoaderTargetPlugin.js +19 -19
- package/lib/MainTemplate.js +3 -1
- package/lib/MemoryOutputFileSystem.js +5 -5
- package/lib/ModuleBuildError.js +42 -42
- package/lib/ModuleDependencyError.js +22 -22
- package/lib/ModuleDependencyWarning.js +22 -22
- package/lib/ModuleError.js +24 -24
- package/lib/ModuleFilenameHelpers.js +162 -162
- package/lib/ModuleNotFoundError.js +26 -26
- package/lib/ModuleReason.js +50 -50
- package/lib/ModuleTemplate.js +23 -23
- package/lib/ModuleWarning.js +24 -24
- package/lib/MovedToPluginWarningPlugin.js +21 -21
- package/lib/MultiCompiler.js +164 -164
- package/lib/MultiEntryPlugin.js +39 -39
- package/lib/MultiModuleFactory.js +19 -19
- package/lib/MultiStats.js +79 -79
- package/lib/MultiWatching.js +32 -32
- package/lib/NamedChunksPlugin.js +30 -30
- package/lib/NamedModulesPlugin.js +27 -27
- package/lib/NewWatchingPlugin.js +15 -15
- package/lib/NoEmitOnErrorsPlugin.js +22 -22
- package/lib/NoErrorsPlugin.js +29 -29
- package/lib/NodeStuffPlugin.js +97 -97
- package/lib/NormalModuleFactory.js +3 -1
- package/lib/NormalModuleReplacementPlugin.js +45 -45
- package/lib/NullFactory.js +12 -12
- package/lib/OptionsApply.js +10 -10
- package/lib/OptionsDefaulter.js +2 -2
- package/lib/Parser.js +79 -0
- package/lib/ParserHelpers.js +85 -85
- package/lib/PrefetchPlugin.js +31 -31
- package/lib/ProgressPlugin.js +192 -192
- package/lib/ProvidePlugin.js +55 -55
- package/lib/RawModule.js +54 -54
- package/lib/RequestShortener.js +63 -63
- package/lib/RequireJsStuffPlugin.js +31 -31
- package/lib/RuleSet.js +444 -444
- package/lib/SetVarMainTemplatePlugin.js +41 -41
- package/lib/SingleEntryPlugin.js +35 -35
- package/lib/SizeFormatHelpers.js +18 -18
- package/lib/SourceMapDevToolModuleOptionsPlugin.js +37 -37
- package/lib/SourceMapDevToolPlugin.js +3 -3
- package/lib/Stats.js +4 -2
- package/lib/TemplatedPathPlugin.js +6 -2
- package/lib/UmdMainTemplatePlugin.js +1 -1
- package/lib/UnsupportedFeatureWarning.js +21 -21
- package/lib/UseStrictPlugin.js +34 -34
- package/lib/WarnCaseSensitiveModulesPlugin.js +31 -31
- package/lib/WatchIgnorePlugin.js +49 -49
- package/lib/WebpackError.js +11 -11
- package/lib/WebpackOptionsDefaulter.js +130 -129
- package/lib/WebpackOptionsValidationError.js +219 -196
- package/lib/compareLocations.js +36 -36
- package/lib/dependencies/AMDDefineDependency.js +142 -142
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +18 -6
- package/lib/dependencies/AMDPlugin.js +119 -119
- package/lib/dependencies/AMDRequireDependenciesBlock.js +33 -33
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +177 -177
- package/lib/dependencies/AMDRequireDependency.js +67 -67
- package/lib/dependencies/AMDRequireItemDependency.js +22 -22
- package/lib/dependencies/CommonJsRequireDependency.js +22 -22
- package/lib/dependencies/CommonJsRequireDependencyParserPlugin.js +89 -89
- package/lib/dependencies/ConstDependency.js +32 -32
- package/lib/dependencies/ContextDependencyHelpers.js +71 -71
- package/lib/dependencies/ContextElementDependency.js +21 -21
- package/lib/dependencies/CriticalDependencyWarning.js +20 -20
- package/lib/dependencies/DelegatedExportsDependency.js +33 -33
- package/lib/dependencies/DelegatedSourceDependency.js +18 -18
- package/lib/dependencies/DllEntryDependency.js +20 -20
- package/lib/dependencies/HarmonyCompatibilityDependency.js +30 -30
- package/lib/dependencies/HarmonyDetectionParserPlugin.js +2 -2
- package/lib/dependencies/HarmonyExportHeaderDependency.js +28 -28
- package/lib/dependencies/HarmonyImportDependency.js +1 -1
- package/lib/dependencies/ImportDependenciesBlock.js +17 -17
- package/lib/dependencies/ImportEagerContextDependency.js +22 -22
- package/lib/dependencies/ImportLazyContextDependency.js +22 -22
- package/lib/dependencies/ImportLazyOnceContextDependency.js +22 -22
- package/lib/dependencies/ImportParserPlugin.js +89 -89
- package/lib/dependencies/ImportPlugin.js +60 -60
- package/lib/dependencies/ImportWeakContextDependency.js +22 -22
- package/lib/dependencies/LoaderDependency.js +18 -18
- package/lib/dependencies/LoaderPlugin.js +60 -60
- package/lib/dependencies/LocalModule.js +23 -23
- package/lib/dependencies/LocalModuleDependency.js +24 -24
- package/lib/dependencies/LocalModulesHelpers.js +46 -46
- package/lib/dependencies/ModuleDependency.js +23 -23
- package/lib/dependencies/ModuleHotAcceptDependency.js +23 -23
- package/lib/dependencies/ModuleHotDeclineDependency.js +23 -23
- package/lib/dependencies/MultiEntryDependency.js +20 -20
- package/lib/dependencies/NullDependency.js +24 -24
- package/lib/dependencies/PrefetchDependency.js +18 -18
- package/lib/dependencies/RequireContextDependency.js +26 -26
- package/lib/dependencies/RequireContextDependencyParserPlugin.js +50 -50
- package/lib/dependencies/RequireContextPlugin.js +96 -96
- package/lib/dependencies/RequireEnsureDependenciesBlock.js +22 -22
- package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +102 -102
- package/lib/dependencies/RequireEnsureDependency.js +38 -38
- package/lib/dependencies/RequireEnsureItemDependency.js +21 -21
- package/lib/dependencies/RequireEnsurePlugin.js +40 -40
- package/lib/dependencies/RequireHeaderDependency.js +26 -26
- package/lib/dependencies/RequireIncludeDependency.js +8 -0
- package/lib/dependencies/RequireIncludeDependencyParserPlugin.js +21 -21
- package/lib/dependencies/RequireIncludePlugin.js +33 -33
- package/lib/dependencies/RequireResolveDependency.js +22 -22
- package/lib/dependencies/RequireResolveDependencyParserPlugin.js +71 -71
- package/lib/dependencies/RequireResolveHeaderDependency.js +26 -26
- package/lib/dependencies/SingleEntryDependency.js +18 -18
- package/lib/dependencies/SystemPlugin.js +44 -44
- package/lib/dependencies/UnsupportedDependency.js +23 -23
- package/lib/dependencies/WebpackMissingModule.js +18 -18
- package/lib/dependencies/getFunctionExpression.js +44 -44
- package/lib/formatLocation.js +54 -54
- package/lib/node/NodeChunkTemplatePlugin.js +27 -27
- package/lib/node/NodeEnvironmentPlugin.js +25 -25
- package/lib/node/NodeHotUpdateChunkTemplatePlugin.js +27 -27
- package/lib/node/NodeMainTemplate.runtime.js +24 -24
- package/lib/node/NodeMainTemplateAsync.runtime.js +40 -40
- package/lib/node/NodeOutputFileSystem.js +22 -22
- package/lib/node/NodeSourcePlugin.js +88 -88
- package/lib/node/NodeTargetPlugin.js +17 -15
- package/lib/node/NodeTemplatePlugin.js +27 -27
- package/lib/node/NodeWatchFileSystem.js +72 -72
- package/lib/optimize/ChunkModuleIdRangePlugin.js +53 -53
- package/lib/optimize/ConcatenatedModule.js +17 -6
- package/lib/optimize/DedupePlugin.js +15 -15
- package/lib/optimize/FlagIncludedChunksPlugin.js +35 -35
- package/lib/optimize/LimitChunkCountPlugin.js +59 -59
- package/lib/optimize/MinChunkSizePlugin.js +65 -65
- package/lib/optimize/RemoveEmptyChunksPlugin.js +21 -21
- package/lib/optimize/UglifyJsPlugin.js +9 -9
- package/lib/performance/AssetsOverSizeLimitWarning.js +23 -23
- package/lib/performance/EntrypointsOverSizeLimitWarning.js +28 -28
- package/lib/performance/NoAsyncChunksWarning.js +20 -20
- package/lib/performance/SizeLimitsPlugin.js +102 -102
- package/lib/prepareOptions.js +29 -29
- package/lib/removeAndDo.js +15 -15
- package/lib/util/Semaphore.js +32 -32
- package/lib/util/identifier.js +38 -38
- package/lib/validateSchema.js +66 -66
- package/lib/web/WebEnvironmentPlugin.js +18 -18
- package/lib/webworker/WebWorkerChunkTemplatePlugin.js +29 -29
- package/lib/webworker/WebWorkerHotUpdateChunkTemplatePlugin.js +28 -28
- package/lib/webworker/WebWorkerMainTemplate.runtime.js +58 -58
- package/lib/webworker/WebWorkerMainTemplatePlugin.js +2 -2
- package/lib/webworker/WebWorkerTemplatePlugin.js +20 -20
- package/package.json +25 -16
- package/schemas/ajv.absolutePath.js +29 -29
- package/schemas/webpackOptionsSchema.json +405 -76
@@ -3,6 +3,7 @@
|
|
3
3
|
"definitions": {
|
4
4
|
"common.arrayOfStringOrStringArrayValues": {
|
5
5
|
"items": {
|
6
|
+
"description": "string or array of strings",
|
6
7
|
"anyOf": [
|
7
8
|
{
|
8
9
|
"minLength": 1,
|
@@ -10,6 +11,7 @@
|
|
10
11
|
},
|
11
12
|
{
|
12
13
|
"items": {
|
14
|
+
"description": "A non-empty string",
|
13
15
|
"minLength": 1,
|
14
16
|
"type": "string"
|
15
17
|
},
|
@@ -21,6 +23,7 @@
|
|
21
23
|
},
|
22
24
|
"common.arrayOfStringValues": {
|
23
25
|
"items": {
|
26
|
+
"description": "A non-empty string",
|
24
27
|
"minLength": 1,
|
25
28
|
"type": "string"
|
26
29
|
},
|
@@ -28,6 +31,7 @@
|
|
28
31
|
},
|
29
32
|
"common.nonEmptyArrayOfUniqueStringValues": {
|
30
33
|
"items": {
|
34
|
+
"description": "A non-empty string",
|
31
35
|
"minLength": 1,
|
32
36
|
"type": "string"
|
33
37
|
},
|
@@ -36,11 +40,11 @@
|
|
36
40
|
"uniqueItems": true
|
37
41
|
},
|
38
42
|
"entry": {
|
39
|
-
"description": "The entry point(s) of the compilation.",
|
40
43
|
"oneOf": [
|
41
44
|
{
|
42
45
|
"minProperties": 1,
|
43
46
|
"additionalProperties": {
|
47
|
+
"description": "An entry point with name",
|
44
48
|
"oneOf": [
|
45
49
|
{
|
46
50
|
"description": "The string is resolved to a module which is loaded upon startup.",
|
@@ -49,7 +53,11 @@
|
|
49
53
|
},
|
50
54
|
{
|
51
55
|
"description": "All modules are loaded upon startup. The last one is exported.",
|
52
|
-
"
|
56
|
+
"anyOf": [
|
57
|
+
{
|
58
|
+
"$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
|
59
|
+
}
|
60
|
+
]
|
53
61
|
}
|
54
62
|
]
|
55
63
|
},
|
@@ -57,20 +65,20 @@
|
|
57
65
|
"type": "object"
|
58
66
|
},
|
59
67
|
{
|
60
|
-
"description": "The string is resolved to a module which is loaded upon startup.",
|
68
|
+
"description": "An entry point without name. The string is resolved to a module which is loaded upon startup.",
|
61
69
|
"minLength": 1,
|
62
70
|
"type": "string"
|
63
71
|
},
|
64
72
|
{
|
65
|
-
"
|
73
|
+
"description": "An entry point without name. All modules are loaded upon startup. The last one is exported.",
|
74
|
+
"anyOf": [
|
66
75
|
{
|
67
76
|
"$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
|
68
77
|
}
|
69
|
-
]
|
70
|
-
"description": "All modules are loaded upon startup. The last one is exported."
|
78
|
+
]
|
71
79
|
},
|
72
80
|
{
|
73
|
-
"description": "
|
81
|
+
"description": "A Function returning an entry object, an entry string, an entry array or a promise to these things.",
|
74
82
|
"instanceof": "Function"
|
75
83
|
}
|
76
84
|
]
|
@@ -83,6 +91,7 @@
|
|
83
91
|
},
|
84
92
|
{
|
85
93
|
"additionalProperties": {
|
94
|
+
"description": "The dependency used for the external",
|
86
95
|
"anyOf": [
|
87
96
|
{
|
88
97
|
"type": "string"
|
@@ -108,24 +117,30 @@
|
|
108
117
|
},
|
109
118
|
{
|
110
119
|
"items": {
|
111
|
-
"
|
120
|
+
"description": "External configuration",
|
121
|
+
"anyOf": [
|
122
|
+
{
|
123
|
+
"$ref": "#/definitions/externals"
|
124
|
+
}
|
125
|
+
]
|
112
126
|
},
|
113
127
|
"type": "array"
|
114
128
|
}
|
115
|
-
]
|
116
|
-
"description": "Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`."
|
129
|
+
]
|
117
130
|
},
|
118
131
|
"module": {
|
119
132
|
"additionalProperties": false,
|
120
|
-
"description": "Options affecting the normal modules (`NormalModuleFactory`).",
|
121
133
|
"properties": {
|
122
134
|
"exprContextCritical": {
|
135
|
+
"description": "Enable warnings for full dynamic dependencies",
|
123
136
|
"type": "boolean"
|
124
137
|
},
|
125
138
|
"exprContextRecursive": {
|
139
|
+
"description": "Enable recursive directory lookup for full dynamic dependencies",
|
126
140
|
"type": "boolean"
|
127
141
|
},
|
128
142
|
"exprContextRegExp": {
|
143
|
+
"description": "Sets the default regular expression for full dynamic dependencies",
|
129
144
|
"anyOf": [
|
130
145
|
{
|
131
146
|
"type": "boolean"
|
@@ -136,21 +151,23 @@
|
|
136
151
|
]
|
137
152
|
},
|
138
153
|
"exprContextRequest": {
|
154
|
+
"description": "Set the default request for full dynamic dependencies",
|
139
155
|
"type": "string"
|
140
156
|
},
|
141
157
|
"loaders": {
|
142
|
-
"
|
158
|
+
"description": "An array of automatically applied loaders.",
|
159
|
+
"anyOf": [
|
143
160
|
{
|
144
161
|
"$ref": "#/definitions/ruleSet-rules"
|
145
162
|
}
|
146
|
-
]
|
147
|
-
"description": "An array of automatically applied loaders."
|
163
|
+
]
|
148
164
|
},
|
149
165
|
"noParse": {
|
150
166
|
"description": "Don't parse files matching. It's matched against the full resolved request.",
|
151
167
|
"anyOf": [
|
152
168
|
{
|
153
169
|
"items": {
|
170
|
+
"description": "A regular expression, when matched the module is not parsed",
|
154
171
|
"instanceof": "RegExp"
|
155
172
|
},
|
156
173
|
"minItems": 1,
|
@@ -164,6 +181,7 @@
|
|
164
181
|
},
|
165
182
|
{
|
166
183
|
"items": {
|
184
|
+
"description": "An absolute path, when the module starts with this path it is not parsed",
|
167
185
|
"type": "string",
|
168
186
|
"absolutePath": true
|
169
187
|
},
|
@@ -185,12 +203,15 @@
|
|
185
203
|
"description": "An array of rules applied for modules."
|
186
204
|
},
|
187
205
|
"unknownContextCritical": {
|
206
|
+
"description": "Enable warnings when using the require function in a not statically analyse-able way",
|
188
207
|
"type": "boolean"
|
189
208
|
},
|
190
209
|
"unknownContextRecursive": {
|
210
|
+
"description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way",
|
191
211
|
"type": "boolean"
|
192
212
|
},
|
193
213
|
"unknownContextRegExp": {
|
214
|
+
"description": "Sets the regular expression when using the require function in a not statically analyse-able way",
|
194
215
|
"anyOf": [
|
195
216
|
{
|
196
217
|
"type": "boolean"
|
@@ -201,9 +222,11 @@
|
|
201
222
|
]
|
202
223
|
},
|
203
224
|
"unknownContextRequest": {
|
225
|
+
"description": "Sets the request when using the require function in a not statically analyse-able way",
|
204
226
|
"type": "string"
|
205
227
|
},
|
206
228
|
"unsafeCache": {
|
229
|
+
"description": "Cache the resolving of module requests",
|
207
230
|
"anyOf": [
|
208
231
|
{
|
209
232
|
"type": "boolean"
|
@@ -214,18 +237,23 @@
|
|
214
237
|
]
|
215
238
|
},
|
216
239
|
"wrappedContextCritical": {
|
240
|
+
"description": "Enable warnings for partial dynamic dependencies",
|
217
241
|
"type": "boolean"
|
218
242
|
},
|
219
243
|
"wrappedContextRecursive": {
|
244
|
+
"description": "Enable recursive directory lookup for partial dynamic dependencies",
|
220
245
|
"type": "boolean"
|
221
246
|
},
|
222
247
|
"wrappedContextRegExp": {
|
248
|
+
"description": "Set the inner regular expression for partial dynamic dependencies",
|
223
249
|
"instanceof": "RegExp"
|
224
250
|
},
|
225
251
|
"strictExportPresence": {
|
252
|
+
"description": "Emit errors instead of warnings when imported names don't exist in imported module",
|
226
253
|
"type": "boolean"
|
227
254
|
},
|
228
255
|
"strictThisContextOnImports": {
|
256
|
+
"description": "Handle the this context correctly according to the spec for namespace objects",
|
229
257
|
"type": "boolean"
|
230
258
|
}
|
231
259
|
},
|
@@ -233,7 +261,6 @@
|
|
233
261
|
},
|
234
262
|
"output": {
|
235
263
|
"additionalProperties": false,
|
236
|
-
"description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.",
|
237
264
|
"properties": {
|
238
265
|
"auxiliaryComment": {
|
239
266
|
"description": "Add a comment in the UMD wrapper.",
|
@@ -247,15 +274,19 @@
|
|
247
274
|
"description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
|
248
275
|
"properties": {
|
249
276
|
"amd": {
|
277
|
+
"description": "Set comment for `amd` section in UMD",
|
250
278
|
"type": "string"
|
251
279
|
},
|
252
280
|
"commonjs": {
|
281
|
+
"description": "Set comment for `commonjs` (exports) section in UMD",
|
253
282
|
"type": "string"
|
254
283
|
},
|
255
284
|
"commonjs2": {
|
285
|
+
"description": "Set comment for `commonjs2` (module.exports) section in UMD",
|
256
286
|
"type": "string"
|
257
287
|
},
|
258
288
|
"root": {
|
289
|
+
"description": "Set comment for `root` (global variable) section in UMD",
|
259
290
|
"type": "string"
|
260
291
|
}
|
261
292
|
},
|
@@ -265,7 +296,14 @@
|
|
265
296
|
},
|
266
297
|
"chunkFilename": {
|
267
298
|
"description": "The filename of non-entry chunks as relative path inside the `output.path` directory.",
|
268
|
-
"
|
299
|
+
"anyOf": [
|
300
|
+
{
|
301
|
+
"type": "string"
|
302
|
+
},
|
303
|
+
{
|
304
|
+
"instanceof": "Function"
|
305
|
+
}
|
306
|
+
],
|
269
307
|
"absolutePath": false
|
270
308
|
},
|
271
309
|
"crossOriginLoading": {
|
@@ -276,6 +314,13 @@
|
|
276
314
|
"use-credentials"
|
277
315
|
]
|
278
316
|
},
|
317
|
+
"jsonpScriptType": {
|
318
|
+
"description": "This option enables loading async chunks via a custom script type, such as script type=\"module\"",
|
319
|
+
"enum": [
|
320
|
+
"text/javascript",
|
321
|
+
"module"
|
322
|
+
]
|
323
|
+
},
|
279
324
|
"chunkLoadTimeout": {
|
280
325
|
"description": "Number of milliseconds before chunk request expires",
|
281
326
|
"type": "number"
|
@@ -300,17 +345,6 @@
|
|
300
345
|
},
|
301
346
|
{
|
302
347
|
"description": "An object similar to `module.loaders` enables it for specific files.",
|
303
|
-
"properties": {
|
304
|
-
"exclude": {
|
305
|
-
"type": "string"
|
306
|
-
},
|
307
|
-
"include": {
|
308
|
-
"type": "string"
|
309
|
-
},
|
310
|
-
"test": {
|
311
|
-
"type": "string"
|
312
|
-
}
|
313
|
-
},
|
314
348
|
"type": "object"
|
315
349
|
}
|
316
350
|
]
|
@@ -328,28 +362,49 @@
|
|
328
362
|
},
|
329
363
|
"filename": {
|
330
364
|
"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.",
|
331
|
-
"
|
365
|
+
"anyOf": [
|
366
|
+
{
|
367
|
+
"type": "string"
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"instanceof": "Function"
|
371
|
+
}
|
372
|
+
],
|
332
373
|
"absolutePath": false
|
333
374
|
},
|
334
375
|
"hashDigest": {
|
335
|
-
"
|
336
|
-
"
|
376
|
+
"description": "Digest type used for the hash",
|
377
|
+
"enum": [
|
378
|
+
"latin1",
|
379
|
+
"hex",
|
380
|
+
"base64"
|
381
|
+
]
|
337
382
|
},
|
338
383
|
"hashDigestLength": {
|
384
|
+
"description": "Number of chars which are used for the hash",
|
339
385
|
"minimum": 1,
|
340
386
|
"type": "number"
|
341
387
|
},
|
342
388
|
"hashFunction": {
|
389
|
+
"description": "Algorithm used for generation the hash (see node.js crypto package)",
|
343
390
|
"minLength": 1,
|
344
391
|
"type": "string"
|
345
392
|
},
|
346
393
|
"hashSalt": {
|
394
|
+
"description": "Any string which is added to the hash to salt it",
|
347
395
|
"minLength": 1,
|
348
396
|
"type": "string"
|
349
397
|
},
|
350
398
|
"hotUpdateChunkFilename": {
|
351
399
|
"description": "The filename of the Hot Update Chunks. They are inside the output.path directory.",
|
352
|
-
"
|
400
|
+
"anyOf": [
|
401
|
+
{
|
402
|
+
"type": "string"
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"instanceof": "Function"
|
406
|
+
}
|
407
|
+
],
|
353
408
|
"absolutePath": false
|
354
409
|
},
|
355
410
|
"hotUpdateFunction": {
|
@@ -358,7 +413,14 @@
|
|
358
413
|
},
|
359
414
|
"hotUpdateMainFilename": {
|
360
415
|
"description": "The filename of the Hot Update Main File. It is inside the `output.path` directory.",
|
361
|
-
"
|
416
|
+
"anyOf": [
|
417
|
+
{
|
418
|
+
"type": "string"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"instanceof": "Function"
|
422
|
+
}
|
423
|
+
],
|
362
424
|
"absolutePath": false
|
363
425
|
},
|
364
426
|
"jsonpFunction": {
|
@@ -372,22 +434,34 @@
|
|
372
434
|
},
|
373
435
|
{
|
374
436
|
"items": {
|
437
|
+
"description": "A part of the library name",
|
375
438
|
"type": "string"
|
376
439
|
},
|
377
440
|
"type": "array"
|
378
441
|
},
|
379
442
|
{
|
380
443
|
"type": "object",
|
444
|
+
"additionalProperties": false,
|
381
445
|
"properties": {
|
382
|
-
"root": {
|
383
|
-
|
384
|
-
|
446
|
+
"root": {
|
447
|
+
"description": "Name of the property exposed globally by a UMD library",
|
448
|
+
"type": "string"
|
449
|
+
},
|
450
|
+
"amd": {
|
451
|
+
"description": "Name of the exposed AMD library in the UMD",
|
452
|
+
"type": "string"
|
453
|
+
},
|
454
|
+
"commonjs": {
|
455
|
+
"description": "Name of the exposed commonjs export in the UMD",
|
456
|
+
"type": "string"
|
457
|
+
}
|
385
458
|
}
|
386
459
|
}
|
387
460
|
],
|
388
461
|
"description": "If set, export the bundle as library. `output.library` is the name."
|
389
462
|
},
|
390
463
|
"libraryTarget": {
|
464
|
+
"description": "Type of library",
|
391
465
|
"enum": [
|
392
466
|
"var",
|
393
467
|
"assign",
|
@@ -404,6 +478,7 @@
|
|
404
478
|
]
|
405
479
|
},
|
406
480
|
"libraryExport": {
|
481
|
+
"description": "Specify which export should be exposed as library",
|
407
482
|
"anyOf": [
|
408
483
|
{
|
409
484
|
"type": "string"
|
@@ -424,7 +499,14 @@
|
|
424
499
|
},
|
425
500
|
"publicPath": {
|
426
501
|
"description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.",
|
427
|
-
"
|
502
|
+
"anyOf": [
|
503
|
+
{
|
504
|
+
"type": "string"
|
505
|
+
},
|
506
|
+
{
|
507
|
+
"instanceof": "Function"
|
508
|
+
}
|
509
|
+
]
|
428
510
|
},
|
429
511
|
"sourceMapFilename": {
|
430
512
|
"description": "The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.",
|
@@ -450,24 +532,30 @@
|
|
450
532
|
"additionalProperties": false,
|
451
533
|
"properties": {
|
452
534
|
"alias": {
|
535
|
+
"description": "Redirect module requests",
|
453
536
|
"anyOf": [
|
454
537
|
{
|
455
538
|
"additionalProperties": {
|
539
|
+
"description": "New request",
|
456
540
|
"type": "string"
|
457
541
|
},
|
458
542
|
"type": "object"
|
459
543
|
},
|
460
544
|
{
|
461
545
|
"items": {
|
546
|
+
"description": "Alias configuration",
|
462
547
|
"additionalProperties": false,
|
463
548
|
"properties": {
|
464
549
|
"alias": {
|
550
|
+
"description": "New request",
|
465
551
|
"type": "string"
|
466
552
|
},
|
467
553
|
"name": {
|
554
|
+
"description": "Request to be redirected",
|
468
555
|
"type": "string"
|
469
556
|
},
|
470
557
|
"onlyModule": {
|
558
|
+
"description": "Redirect only exact matching request",
|
471
559
|
"type": "boolean"
|
472
560
|
}
|
473
561
|
},
|
@@ -478,47 +566,93 @@
|
|
478
566
|
]
|
479
567
|
},
|
480
568
|
"aliasFields": {
|
481
|
-
"
|
569
|
+
"description": "Fields in the description file (package.json) which are used to redirect requests inside the module",
|
570
|
+
"anyOf": [
|
571
|
+
{
|
572
|
+
"$ref": "#/definitions/common.arrayOfStringOrStringArrayValues"
|
573
|
+
}
|
574
|
+
]
|
482
575
|
},
|
483
576
|
"cachePredicate": {
|
577
|
+
"description": "Predicate function to decide which requests should be cached",
|
484
578
|
"instanceof": "Function"
|
485
579
|
},
|
486
580
|
"cacheWithContext": {
|
581
|
+
"description": "Include the context information in the cache identifier when caching",
|
487
582
|
"type": "boolean"
|
488
583
|
},
|
489
584
|
"descriptionFiles": {
|
490
|
-
"
|
585
|
+
"description": "Filenames used to find a description file",
|
586
|
+
"anyOf": [
|
587
|
+
{
|
588
|
+
"$ref": "#/definitions/common.arrayOfStringValues"
|
589
|
+
}
|
590
|
+
]
|
491
591
|
},
|
492
592
|
"enforceExtension": {
|
593
|
+
"description": "Enforce using one of the extensions from the extensions option",
|
493
594
|
"type": "boolean"
|
494
595
|
},
|
495
596
|
"enforceModuleExtension": {
|
597
|
+
"description": "Enforce using one of the module extensions from the moduleExtensions option",
|
496
598
|
"type": "boolean"
|
497
599
|
},
|
498
600
|
"extensions": {
|
499
|
-
"
|
601
|
+
"description": "Extensions added to the request when trying to find the file",
|
602
|
+
"anyOf": [
|
603
|
+
{
|
604
|
+
"$ref": "#/definitions/common.arrayOfStringValues"
|
605
|
+
}
|
606
|
+
]
|
607
|
+
},
|
608
|
+
"fileSystem": {
|
609
|
+
"description": "Filesystem for the resolver"
|
500
610
|
},
|
501
|
-
"fileSystem": {},
|
502
611
|
"mainFields": {
|
503
|
-
"
|
612
|
+
"description": "Field names from the description file (package.json) which are used to find the default entry point",
|
613
|
+
"anyOf": [
|
614
|
+
{
|
615
|
+
"$ref": "#/definitions/common.arrayOfStringOrStringArrayValues"
|
616
|
+
}
|
617
|
+
]
|
504
618
|
},
|
505
619
|
"mainFiles": {
|
506
|
-
"
|
620
|
+
"description": "Filenames used to find the default entry point if there is no description file or main field",
|
621
|
+
"anyOf": [
|
622
|
+
{
|
623
|
+
"$ref": "#/definitions/common.arrayOfStringValues"
|
624
|
+
}
|
625
|
+
]
|
507
626
|
},
|
508
627
|
"moduleExtensions": {
|
509
|
-
"
|
628
|
+
"description": "Extenstions added to the module request when trying to find the module",
|
629
|
+
"anyOf": [
|
630
|
+
{
|
631
|
+
"$ref": "#/definitions/common.arrayOfStringValues"
|
632
|
+
}
|
633
|
+
]
|
510
634
|
},
|
511
635
|
"modules": {
|
512
|
-
"
|
636
|
+
"description": "Folder names or directory paths where to find modules",
|
637
|
+
"anyOf": [
|
638
|
+
{
|
639
|
+
"$ref": "#/definitions/common.arrayOfStringValues"
|
640
|
+
}
|
641
|
+
]
|
513
642
|
},
|
514
643
|
"plugins": {
|
644
|
+
"description": "Plugins for the resolver",
|
515
645
|
"type": "array"
|
516
646
|
},
|
517
|
-
"resolver": {
|
647
|
+
"resolver": {
|
648
|
+
"description": "Custom resolver"
|
649
|
+
},
|
518
650
|
"symlinks": {
|
651
|
+
"description": "Enable resolving symlinks to the original location",
|
519
652
|
"type": "boolean"
|
520
653
|
},
|
521
654
|
"unsafeCache": {
|
655
|
+
"description": "Enable caching of successfully resolved requests",
|
522
656
|
"anyOf": [
|
523
657
|
{
|
524
658
|
"type": "boolean"
|
@@ -530,6 +664,7 @@
|
|
530
664
|
]
|
531
665
|
},
|
532
666
|
"useSyncFileSystemCalls": {
|
667
|
+
"description": "Use synchronous filesystem calls for the resolver",
|
533
668
|
"type": "boolean"
|
534
669
|
}
|
535
670
|
},
|
@@ -554,22 +689,52 @@
|
|
554
689
|
"additionalProperties": false,
|
555
690
|
"properties": {
|
556
691
|
"and": {
|
557
|
-
"
|
692
|
+
"description": "Logical AND",
|
693
|
+
"anyOf": [
|
694
|
+
{
|
695
|
+
"$ref": "#/definitions/ruleSet-conditions"
|
696
|
+
}
|
697
|
+
]
|
558
698
|
},
|
559
699
|
"exclude": {
|
560
|
-
"
|
700
|
+
"description": "Exclude all modules matching any of these conditions",
|
701
|
+
"anyOf": [
|
702
|
+
{
|
703
|
+
"$ref": "#/definitions/ruleSet-condition"
|
704
|
+
}
|
705
|
+
]
|
561
706
|
},
|
562
707
|
"include": {
|
563
|
-
"
|
708
|
+
"description": "Exclude all modules matching not any of these conditions",
|
709
|
+
"anyOf": [
|
710
|
+
{
|
711
|
+
"$ref": "#/definitions/ruleSet-condition"
|
712
|
+
}
|
713
|
+
]
|
564
714
|
},
|
565
715
|
"not": {
|
566
|
-
"
|
716
|
+
"description": "Logical NOT",
|
717
|
+
"anyOf": [
|
718
|
+
{
|
719
|
+
"$ref": "#/definitions/ruleSet-conditions"
|
720
|
+
}
|
721
|
+
]
|
567
722
|
},
|
568
723
|
"or": {
|
569
|
-
"
|
724
|
+
"description": "Logical OR",
|
725
|
+
"anyOf": [
|
726
|
+
{
|
727
|
+
"$ref": "#/definitions/ruleSet-conditions"
|
728
|
+
}
|
729
|
+
]
|
570
730
|
},
|
571
731
|
"test": {
|
572
|
-
"
|
732
|
+
"description": "Exclude all modules matching any of these conditions",
|
733
|
+
"anyOf": [
|
734
|
+
{
|
735
|
+
"$ref": "#/definitions/ruleSet-condition"
|
736
|
+
}
|
737
|
+
]
|
573
738
|
}
|
574
739
|
},
|
575
740
|
"type": "object"
|
@@ -578,7 +743,12 @@
|
|
578
743
|
},
|
579
744
|
"ruleSet-conditions": {
|
580
745
|
"items": {
|
581
|
-
"
|
746
|
+
"description": "A rule condition",
|
747
|
+
"anyOf": [
|
748
|
+
{
|
749
|
+
"$ref": "#/definitions/ruleSet-condition"
|
750
|
+
}
|
751
|
+
]
|
582
752
|
},
|
583
753
|
"type": "array"
|
584
754
|
},
|
@@ -600,12 +770,14 @@
|
|
600
770
|
"additionalProperties": false,
|
601
771
|
"properties": {
|
602
772
|
"enforce": {
|
773
|
+
"description": "Enforce this rule as pre or post step",
|
603
774
|
"enum": [
|
604
775
|
"pre",
|
605
776
|
"post"
|
606
777
|
]
|
607
778
|
},
|
608
779
|
"exclude": {
|
780
|
+
"description": "Shortcut for resource.exclude",
|
609
781
|
"allOf": [
|
610
782
|
{
|
611
783
|
"$ref": "#/definitions/ruleSet-condition"
|
@@ -616,6 +788,7 @@
|
|
616
788
|
]
|
617
789
|
},
|
618
790
|
"include": {
|
791
|
+
"description": "Shortcut for resource.include",
|
619
792
|
"allOf": [
|
620
793
|
{
|
621
794
|
"$ref": "#/definitions/ruleSet-condition"
|
@@ -626,6 +799,7 @@
|
|
626
799
|
]
|
627
800
|
},
|
628
801
|
"issuer": {
|
802
|
+
"description": "Match the issuer of the module (The module pointing to this module)",
|
629
803
|
"allOf": [
|
630
804
|
{
|
631
805
|
"$ref": "#/definitions/ruleSet-condition"
|
@@ -636,6 +810,7 @@
|
|
636
810
|
]
|
637
811
|
},
|
638
812
|
"loader": {
|
813
|
+
"description": "Shortcut for use.loader",
|
639
814
|
"anyOf": [
|
640
815
|
{
|
641
816
|
"$ref": "#/definitions/ruleSet-loader"
|
@@ -646,22 +821,44 @@
|
|
646
821
|
]
|
647
822
|
},
|
648
823
|
"loaders": {
|
649
|
-
"
|
824
|
+
"description": "Shortcut for use.loader",
|
825
|
+
"anyOf": [
|
826
|
+
{
|
827
|
+
"$ref": "#/definitions/ruleSet-use"
|
828
|
+
}
|
829
|
+
]
|
650
830
|
},
|
651
831
|
"oneOf": {
|
652
|
-
"
|
832
|
+
"description": "Only execute the first matching rule in this array",
|
833
|
+
"anyOf": [
|
834
|
+
{
|
835
|
+
"$ref": "#/definitions/ruleSet-rules"
|
836
|
+
}
|
837
|
+
]
|
653
838
|
},
|
654
839
|
"options": {
|
655
|
-
"
|
840
|
+
"description": "Shortcut for use.options",
|
841
|
+
"anyOf": [
|
842
|
+
{
|
843
|
+
"$ref": "#/definitions/ruleSet-query"
|
844
|
+
}
|
845
|
+
]
|
656
846
|
},
|
657
847
|
"parser": {
|
848
|
+
"description": "Options for parsing",
|
658
849
|
"additionalProperties": true,
|
659
850
|
"type": "object"
|
660
851
|
},
|
661
852
|
"query": {
|
662
|
-
"
|
853
|
+
"description": "Shortcut for use.query",
|
854
|
+
"anyOf": [
|
855
|
+
{
|
856
|
+
"$ref": "#/definitions/ruleSet-query"
|
857
|
+
}
|
858
|
+
]
|
663
859
|
},
|
664
860
|
"resource": {
|
861
|
+
"description": "Match the resource path of the module",
|
665
862
|
"allOf": [
|
666
863
|
{
|
667
864
|
"$ref": "#/definitions/ruleSet-condition"
|
@@ -672,15 +869,31 @@
|
|
672
869
|
]
|
673
870
|
},
|
674
871
|
"resourceQuery": {
|
675
|
-
"
|
872
|
+
"description": "Match the resource query of the module",
|
873
|
+
"anyOf": [
|
874
|
+
{
|
875
|
+
"$ref": "#/definitions/ruleSet-condition"
|
876
|
+
}
|
877
|
+
]
|
676
878
|
},
|
677
879
|
"compiler": {
|
678
|
-
"
|
880
|
+
"description": "Match the child compiler name",
|
881
|
+
"anyOf": [
|
882
|
+
{
|
883
|
+
"$ref": "#/definitions/ruleSet-condition"
|
884
|
+
}
|
885
|
+
]
|
679
886
|
},
|
680
887
|
"rules": {
|
681
|
-
"
|
888
|
+
"description": "Match and execute these rules when this rule is matched",
|
889
|
+
"anyOf": [
|
890
|
+
{
|
891
|
+
"$ref": "#/definitions/ruleSet-rules"
|
892
|
+
}
|
893
|
+
]
|
682
894
|
},
|
683
895
|
"test": {
|
896
|
+
"description": "Shortcut for resource.test",
|
684
897
|
"allOf": [
|
685
898
|
{
|
686
899
|
"$ref": "#/definitions/ruleSet-condition"
|
@@ -691,14 +904,24 @@
|
|
691
904
|
]
|
692
905
|
},
|
693
906
|
"use": {
|
694
|
-
"
|
907
|
+
"description": "Modifiers applied to the module when rule is matched",
|
908
|
+
"anyOf": [
|
909
|
+
{
|
910
|
+
"$ref": "#/definitions/ruleSet-use"
|
911
|
+
}
|
912
|
+
]
|
695
913
|
}
|
696
914
|
},
|
697
915
|
"type": "object"
|
698
916
|
},
|
699
917
|
"ruleSet-rules": {
|
700
918
|
"items": {
|
701
|
-
"
|
919
|
+
"description": "A rule",
|
920
|
+
"anyOf": [
|
921
|
+
{
|
922
|
+
"$ref": "#/definitions/ruleSet-rule"
|
923
|
+
}
|
924
|
+
]
|
702
925
|
},
|
703
926
|
"type": "array"
|
704
927
|
},
|
@@ -712,7 +935,12 @@
|
|
712
935
|
},
|
713
936
|
{
|
714
937
|
"items": {
|
715
|
-
"
|
938
|
+
"description": "An use item",
|
939
|
+
"anyOf": [
|
940
|
+
{
|
941
|
+
"$ref": "#/definitions/ruleSet-use-item"
|
942
|
+
}
|
943
|
+
]
|
716
944
|
},
|
717
945
|
"type": "array"
|
718
946
|
}
|
@@ -730,13 +958,32 @@
|
|
730
958
|
"additionalProperties": false,
|
731
959
|
"properties": {
|
732
960
|
"loader": {
|
733
|
-
"
|
961
|
+
"description": "Loader name",
|
962
|
+
"anyOf": [
|
963
|
+
{
|
964
|
+
"$ref": "#/definitions/ruleSet-loader"
|
965
|
+
}
|
966
|
+
]
|
734
967
|
},
|
735
968
|
"options": {
|
736
|
-
"
|
969
|
+
"description": "Loader options",
|
970
|
+
"anyOf": [
|
971
|
+
{
|
972
|
+
"$ref": "#/definitions/ruleSet-query"
|
973
|
+
}
|
974
|
+
]
|
975
|
+
},
|
976
|
+
"ident": {
|
977
|
+
"description": "Unique loader identifier",
|
978
|
+
"type": "string"
|
737
979
|
},
|
738
980
|
"query": {
|
739
|
-
"
|
981
|
+
"description": "Loader query",
|
982
|
+
"anyOf": [
|
983
|
+
{
|
984
|
+
"$ref": "#/definitions/ruleSet-query"
|
985
|
+
}
|
986
|
+
]
|
740
987
|
}
|
741
988
|
},
|
742
989
|
"type": "object"
|
@@ -764,7 +1011,12 @@
|
|
764
1011
|
{
|
765
1012
|
"type": "array",
|
766
1013
|
"items": {
|
767
|
-
"
|
1014
|
+
"description": "Rule to filter",
|
1015
|
+
"anyOf": [
|
1016
|
+
{
|
1017
|
+
"$ref": "#/definitions/filter-item-types"
|
1018
|
+
}
|
1019
|
+
]
|
768
1020
|
}
|
769
1021
|
}
|
770
1022
|
]
|
@@ -799,11 +1051,13 @@
|
|
799
1051
|
"dependencies": {
|
800
1052
|
"description": "References to other configurations to depend on.",
|
801
1053
|
"items": {
|
1054
|
+
"description": "References to another configuration to depend on.",
|
802
1055
|
"type": "string"
|
803
1056
|
},
|
804
1057
|
"type": "array"
|
805
1058
|
},
|
806
1059
|
"devServer": {
|
1060
|
+
"description": "Options for the webpack-dev-server",
|
807
1061
|
"type": "object"
|
808
1062
|
},
|
809
1063
|
"devtool": {
|
@@ -820,17 +1074,32 @@
|
|
820
1074
|
]
|
821
1075
|
},
|
822
1076
|
"entry": {
|
823
|
-
"
|
1077
|
+
"description": "The entry point(s) of the compilation.",
|
1078
|
+
"anyOf": [
|
1079
|
+
{
|
1080
|
+
"$ref": "#/definitions/entry"
|
1081
|
+
}
|
1082
|
+
]
|
824
1083
|
},
|
825
1084
|
"externals": {
|
826
|
-
"
|
1085
|
+
"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`.",
|
1086
|
+
"anyOf": [
|
1087
|
+
{
|
1088
|
+
"$ref": "#/definitions/externals"
|
1089
|
+
}
|
1090
|
+
]
|
827
1091
|
},
|
828
1092
|
"loader": {
|
829
1093
|
"description": "Custom values available in the loader context.",
|
830
1094
|
"type": "object"
|
831
1095
|
},
|
832
1096
|
"module": {
|
833
|
-
"
|
1097
|
+
"description": "Options affecting the normal modules (`NormalModuleFactory`).",
|
1098
|
+
"anyOf": [
|
1099
|
+
{
|
1100
|
+
"$ref": "#/definitions/module"
|
1101
|
+
}
|
1102
|
+
]
|
834
1103
|
},
|
835
1104
|
"name": {
|
836
1105
|
"description": "Name of the configuration. Used when loading multiple configurations.",
|
@@ -846,6 +1115,7 @@
|
|
846
1115
|
},
|
847
1116
|
{
|
848
1117
|
"additionalProperties": {
|
1118
|
+
"description": "Include a polyfill for the node.js module",
|
849
1119
|
"enum": [
|
850
1120
|
false,
|
851
1121
|
true,
|
@@ -855,6 +1125,7 @@
|
|
855
1125
|
},
|
856
1126
|
"properties": {
|
857
1127
|
"Buffer": {
|
1128
|
+
"description": "Include a polyfill for the 'Buffer' variable",
|
858
1129
|
"enum": [
|
859
1130
|
false,
|
860
1131
|
true,
|
@@ -862,6 +1133,7 @@
|
|
862
1133
|
]
|
863
1134
|
},
|
864
1135
|
"__dirname": {
|
1136
|
+
"description": "Include a polyfill for the '__dirname' variable",
|
865
1137
|
"enum": [
|
866
1138
|
false,
|
867
1139
|
true,
|
@@ -869,6 +1141,7 @@
|
|
869
1141
|
]
|
870
1142
|
},
|
871
1143
|
"__filename": {
|
1144
|
+
"description": "Include a polyfill for the '__filename' variable",
|
872
1145
|
"enum": [
|
873
1146
|
false,
|
874
1147
|
true,
|
@@ -876,6 +1149,7 @@
|
|
876
1149
|
]
|
877
1150
|
},
|
878
1151
|
"console": {
|
1152
|
+
"description": "Include a polyfill for the 'console' variable",
|
879
1153
|
"enum": [
|
880
1154
|
false,
|
881
1155
|
true,
|
@@ -883,9 +1157,11 @@
|
|
883
1157
|
]
|
884
1158
|
},
|
885
1159
|
"global": {
|
1160
|
+
"description": "Include a polyfill for the 'global' variable",
|
886
1161
|
"type": "boolean"
|
887
1162
|
},
|
888
1163
|
"process": {
|
1164
|
+
"description": "Include a polyfill for the 'process' variable",
|
889
1165
|
"enum": [
|
890
1166
|
false,
|
891
1167
|
true,
|
@@ -898,7 +1174,12 @@
|
|
898
1174
|
]
|
899
1175
|
},
|
900
1176
|
"output": {
|
901
|
-
"
|
1177
|
+
"description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.",
|
1178
|
+
"anyOf": [
|
1179
|
+
{
|
1180
|
+
"$ref": "#/definitions/output"
|
1181
|
+
}
|
1182
|
+
]
|
902
1183
|
},
|
903
1184
|
"parallelism": {
|
904
1185
|
"description": "The number of parallel processed modules in the compilation.",
|
@@ -965,10 +1246,20 @@
|
|
965
1246
|
"absolutePath": true
|
966
1247
|
},
|
967
1248
|
"resolve": {
|
968
|
-
"
|
1249
|
+
"description": "Options for the resolver",
|
1250
|
+
"anyOf": [
|
1251
|
+
{
|
1252
|
+
"$ref": "#/definitions/resolve"
|
1253
|
+
}
|
1254
|
+
]
|
969
1255
|
},
|
970
1256
|
"resolveLoader": {
|
971
|
-
"
|
1257
|
+
"description": "Options for the resolver when resolving loaders",
|
1258
|
+
"anyOf": [
|
1259
|
+
{
|
1260
|
+
"$ref": "#/definitions/resolve"
|
1261
|
+
}
|
1262
|
+
]
|
972
1263
|
},
|
973
1264
|
"stats": {
|
974
1265
|
"description": "Used by the webpack CLI program to pass stats options.",
|
@@ -977,6 +1268,10 @@
|
|
977
1268
|
"type": "object",
|
978
1269
|
"additionalProperties": false,
|
979
1270
|
"properties": {
|
1271
|
+
"all": {
|
1272
|
+
"type": "boolean",
|
1273
|
+
"description": "fallback value for stats options when an option is not defined (has precedence over local webpack defaults)"
|
1274
|
+
},
|
980
1275
|
"context": {
|
981
1276
|
"type": "string",
|
982
1277
|
"description": "context directory for request shortening",
|
@@ -1011,6 +1306,7 @@
|
|
1011
1306
|
"description": "add --env information"
|
1012
1307
|
},
|
1013
1308
|
"colors": {
|
1309
|
+
"description": "Enables/Disables colorful output",
|
1014
1310
|
"oneOf": [
|
1015
1311
|
{
|
1016
1312
|
"type": "boolean",
|
@@ -1021,21 +1317,27 @@
|
|
1021
1317
|
"additionalProperties": false,
|
1022
1318
|
"properties": {
|
1023
1319
|
"bold": {
|
1320
|
+
"description": "Custom color for bold text",
|
1024
1321
|
"type": "string"
|
1025
1322
|
},
|
1026
1323
|
"red": {
|
1324
|
+
"description": "Custom color for red text",
|
1027
1325
|
"type": "string"
|
1028
1326
|
},
|
1029
1327
|
"green": {
|
1328
|
+
"description": "Custom color for green text",
|
1030
1329
|
"type": "string"
|
1031
1330
|
},
|
1032
1331
|
"cyan": {
|
1332
|
+
"description": "Custom color for cyan text",
|
1033
1333
|
"type": "string"
|
1034
1334
|
},
|
1035
1335
|
"magenta": {
|
1336
|
+
"description": "Custom color for magenta text",
|
1036
1337
|
"type": "string"
|
1037
1338
|
},
|
1038
1339
|
"yellow": {
|
1340
|
+
"description": "Custom color for yellow text",
|
1039
1341
|
"type": "string"
|
1040
1342
|
}
|
1041
1343
|
}
|
@@ -1088,19 +1390,35 @@
|
|
1088
1390
|
},
|
1089
1391
|
"warningsFilter": {
|
1090
1392
|
"description": "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions",
|
1091
|
-
"
|
1393
|
+
"anyOf": [
|
1394
|
+
{
|
1395
|
+
"$ref": "#/definitions/filter-types"
|
1396
|
+
}
|
1397
|
+
]
|
1092
1398
|
},
|
1093
1399
|
"excludeAssets": {
|
1094
1400
|
"description": "Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions",
|
1095
|
-
"
|
1401
|
+
"anyOf": [
|
1402
|
+
{
|
1403
|
+
"$ref": "#/definitions/filter-types"
|
1404
|
+
}
|
1405
|
+
]
|
1096
1406
|
},
|
1097
1407
|
"excludeModules": {
|
1098
1408
|
"description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps or Functions",
|
1099
|
-
"
|
1409
|
+
"anyOf": [
|
1410
|
+
{
|
1411
|
+
"$ref": "#/definitions/filter-types"
|
1412
|
+
}
|
1413
|
+
]
|
1100
1414
|
},
|
1101
1415
|
"exclude": {
|
1102
1416
|
"description": "Please use excludeModules instead.",
|
1103
|
-
"
|
1417
|
+
"anyOf": [
|
1418
|
+
{
|
1419
|
+
"$ref": "#/definitions/filter-types"
|
1420
|
+
}
|
1421
|
+
]
|
1104
1422
|
},
|
1105
1423
|
"entrypoints": {
|
1106
1424
|
"type": "boolean",
|
@@ -1164,6 +1482,7 @@
|
|
1164
1482
|
]
|
1165
1483
|
},
|
1166
1484
|
"target": {
|
1485
|
+
"description": "Environment to build for",
|
1167
1486
|
"anyOf": [
|
1168
1487
|
{
|
1169
1488
|
"enum": [
|
@@ -1188,12 +1507,22 @@
|
|
1188
1507
|
"type": "boolean"
|
1189
1508
|
},
|
1190
1509
|
"watchOptions": {
|
1510
|
+
"description": "Options for the watcher",
|
1511
|
+
"additionalProperties": false,
|
1191
1512
|
"properties": {
|
1192
1513
|
"aggregateTimeout": {
|
1193
1514
|
"description": "Delay the rebuilt after the first change. Value is a time in ms.",
|
1194
1515
|
"type": "number"
|
1195
1516
|
},
|
1517
|
+
"ignored": {
|
1518
|
+
"description": "Ignore some files from watching"
|
1519
|
+
},
|
1520
|
+
"stdin": {
|
1521
|
+
"description": "Stop watching when stdin stream has ended",
|
1522
|
+
"type": "boolean"
|
1523
|
+
},
|
1196
1524
|
"poll": {
|
1525
|
+
"description": "Enable polling mode for watching",
|
1197
1526
|
"anyOf": [
|
1198
1527
|
{
|
1199
1528
|
"description": "`true`: use polling.",
|