webpack 4.16.4 → 4.16.5
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/SECURITY.md +9 -9
- package/buildin/amd-define.js +3 -3
- package/buildin/amd-options.js +2 -2
- package/buildin/global.js +20 -20
- package/buildin/module.js +22 -22
- package/buildin/system.js +7 -7
- package/hot/emitter.js +2 -2
- package/hot/log-apply-result.js +44 -44
- package/lib/BasicEvaluatedExpression.js +211 -211
- package/lib/Compilation.js +12 -2
- package/lib/dependencies/ContextDependencyHelpers.js +78 -43
- package/lib/dependencies/ContextDependencyTemplateAsId.js +1 -0
- package/lib/dependencies/ContextDependencyTemplateAsRequireCall.js +1 -0
- package/package.json +1 -1
- package/schemas/ajv.absolutePath.js +55 -55
- package/schemas/plugins/BannerPlugin.json +96 -96
- package/schemas/plugins/DllPlugin.json +32 -32
- package/schemas/plugins/DllReferencePlugin.json +99 -99
- package/schemas/plugins/HashedModuleIdsPlugin.json +24 -24
- package/schemas/plugins/LoaderOptionsPlugin.json +26 -26
- package/schemas/plugins/SourceMapDevToolPlugin.json +187 -187
- package/schemas/plugins/WatchIgnorePlugin.json +16 -16
- package/schemas/plugins/debug/ProfilingPlugin.json +12 -12
- package/schemas/plugins/optimize/AggressiveSplittingPlugin.json +22 -22
- package/schemas/plugins/optimize/LimitChunkCountPlugin.json +15 -15
- package/schemas/plugins/optimize/MinChunkSizePlugin.json +13 -13
@@ -1,55 +1,55 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
const errorMessage = (schema, data, message) => ({
|
4
|
-
keyword: "absolutePath",
|
5
|
-
params: { absolutePath: data },
|
6
|
-
message: message,
|
7
|
-
parentSchema: schema
|
8
|
-
});
|
9
|
-
|
10
|
-
const getErrorFor = (shouldBeAbsolute, data, schema) => {
|
11
|
-
const message = shouldBeAbsolute
|
12
|
-
? `The provided value ${JSON.stringify(data)} is not an absolute path!`
|
13
|
-
: `A relative path is expected. However, the provided value ${JSON.stringify(
|
14
|
-
data
|
15
|
-
)} is an absolute path!`;
|
16
|
-
|
17
|
-
return errorMessage(schema, data, message);
|
18
|
-
};
|
19
|
-
|
20
|
-
module.exports = ajv =>
|
21
|
-
ajv.addKeyword("absolutePath", {
|
22
|
-
errors: true,
|
23
|
-
type: "string",
|
24
|
-
compile(expected, schema) {
|
25
|
-
function callback(data) {
|
26
|
-
let passes = true;
|
27
|
-
const isExclamationMarkPresent = data.includes("!");
|
28
|
-
const isCorrectAbsoluteOrRelativePath =
|
29
|
-
expected === /^(?:[A-Za-z]:\\|\/)/.test(data);
|
30
|
-
|
31
|
-
if (isExclamationMarkPresent) {
|
32
|
-
callback.errors = [
|
33
|
-
errorMessage(
|
34
|
-
schema,
|
35
|
-
data,
|
36
|
-
`The provided value ${JSON.stringify(
|
37
|
-
data
|
38
|
-
)} contans exclamation mark (!) which is not allowed because it's reserved for loader syntax.`
|
39
|
-
)
|
40
|
-
];
|
41
|
-
passes = false;
|
42
|
-
}
|
43
|
-
|
44
|
-
if (!isCorrectAbsoluteOrRelativePath) {
|
45
|
-
callback.errors = [getErrorFor(expected, data, schema)];
|
46
|
-
passes = false;
|
47
|
-
}
|
48
|
-
|
49
|
-
return passes;
|
50
|
-
}
|
51
|
-
callback.errors = [];
|
52
|
-
|
53
|
-
return callback;
|
54
|
-
}
|
55
|
-
});
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
const errorMessage = (schema, data, message) => ({
|
4
|
+
keyword: "absolutePath",
|
5
|
+
params: { absolutePath: data },
|
6
|
+
message: message,
|
7
|
+
parentSchema: schema
|
8
|
+
});
|
9
|
+
|
10
|
+
const getErrorFor = (shouldBeAbsolute, data, schema) => {
|
11
|
+
const message = shouldBeAbsolute
|
12
|
+
? `The provided value ${JSON.stringify(data)} is not an absolute path!`
|
13
|
+
: `A relative path is expected. However, the provided value ${JSON.stringify(
|
14
|
+
data
|
15
|
+
)} is an absolute path!`;
|
16
|
+
|
17
|
+
return errorMessage(schema, data, message);
|
18
|
+
};
|
19
|
+
|
20
|
+
module.exports = ajv =>
|
21
|
+
ajv.addKeyword("absolutePath", {
|
22
|
+
errors: true,
|
23
|
+
type: "string",
|
24
|
+
compile(expected, schema) {
|
25
|
+
function callback(data) {
|
26
|
+
let passes = true;
|
27
|
+
const isExclamationMarkPresent = data.includes("!");
|
28
|
+
const isCorrectAbsoluteOrRelativePath =
|
29
|
+
expected === /^(?:[A-Za-z]:\\|\/)/.test(data);
|
30
|
+
|
31
|
+
if (isExclamationMarkPresent) {
|
32
|
+
callback.errors = [
|
33
|
+
errorMessage(
|
34
|
+
schema,
|
35
|
+
data,
|
36
|
+
`The provided value ${JSON.stringify(
|
37
|
+
data
|
38
|
+
)} contans exclamation mark (!) which is not allowed because it's reserved for loader syntax.`
|
39
|
+
)
|
40
|
+
];
|
41
|
+
passes = false;
|
42
|
+
}
|
43
|
+
|
44
|
+
if (!isCorrectAbsoluteOrRelativePath) {
|
45
|
+
callback.errors = [getErrorFor(expected, data, schema)];
|
46
|
+
passes = false;
|
47
|
+
}
|
48
|
+
|
49
|
+
return passes;
|
50
|
+
}
|
51
|
+
callback.errors = [];
|
52
|
+
|
53
|
+
return callback;
|
54
|
+
}
|
55
|
+
});
|
@@ -1,96 +1,96 @@
|
|
1
|
-
{
|
2
|
-
"definitions": {
|
3
|
-
"rule": {
|
4
|
-
"oneOf": [
|
5
|
-
{
|
6
|
-
"instanceof": "RegExp"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"minLength": 1,
|
10
|
-
"type": "string"
|
11
|
-
}
|
12
|
-
]
|
13
|
-
},
|
14
|
-
"rules": {
|
15
|
-
"oneOf": [
|
16
|
-
{
|
17
|
-
"items": {
|
18
|
-
"description": "A rule condition",
|
19
|
-
"anyOf": [
|
20
|
-
{
|
21
|
-
"$ref": "#/definitions/rule"
|
22
|
-
}
|
23
|
-
]
|
24
|
-
},
|
25
|
-
"type": "array"
|
26
|
-
},
|
27
|
-
{
|
28
|
-
"$ref": "#/definitions/rule"
|
29
|
-
}
|
30
|
-
]
|
31
|
-
}
|
32
|
-
},
|
33
|
-
"oneOf": [
|
34
|
-
{
|
35
|
-
"type": "object",
|
36
|
-
"additionalProperties": false,
|
37
|
-
"required": [
|
38
|
-
"banner"
|
39
|
-
],
|
40
|
-
"properties": {
|
41
|
-
"banner": {
|
42
|
-
"description": "Specifies the banner",
|
43
|
-
"anyOf": [
|
44
|
-
{
|
45
|
-
"instanceof": "Function"
|
46
|
-
},
|
47
|
-
{
|
48
|
-
"type": "string"
|
49
|
-
}
|
50
|
-
]
|
51
|
-
},
|
52
|
-
"raw": {
|
53
|
-
"description": "If true, banner will not be wrapped in a comment",
|
54
|
-
"type": "boolean"
|
55
|
-
},
|
56
|
-
"entryOnly": {
|
57
|
-
"description": "If true, the banner will only be added to the entry chunks",
|
58
|
-
"type": "boolean"
|
59
|
-
},
|
60
|
-
"test": {
|
61
|
-
"description": "Include all modules that pass test assertion",
|
62
|
-
"anyOf": [
|
63
|
-
{
|
64
|
-
"$ref": "#/definitions/rules"
|
65
|
-
}
|
66
|
-
]
|
67
|
-
},
|
68
|
-
"include": {
|
69
|
-
"description": "Include all modules matching any of these conditions",
|
70
|
-
"anyOf": [
|
71
|
-
{
|
72
|
-
"$ref": "#/definitions/rules"
|
73
|
-
}
|
74
|
-
]
|
75
|
-
},
|
76
|
-
"exclude": {
|
77
|
-
"description": "Exclude all modules matching any of these conditions",
|
78
|
-
"anyOf": [
|
79
|
-
{
|
80
|
-
"$ref": "#/definitions/rules"
|
81
|
-
}
|
82
|
-
]
|
83
|
-
}
|
84
|
-
}
|
85
|
-
},
|
86
|
-
{
|
87
|
-
"description": "The banner as function, it will be wrapped in a comment",
|
88
|
-
"instanceof": "Function"
|
89
|
-
},
|
90
|
-
{
|
91
|
-
"description": "The banner as string, it will be wrapped in a comment",
|
92
|
-
"minLength": 1,
|
93
|
-
"type": "string"
|
94
|
-
}
|
95
|
-
]
|
96
|
-
}
|
1
|
+
{
|
2
|
+
"definitions": {
|
3
|
+
"rule": {
|
4
|
+
"oneOf": [
|
5
|
+
{
|
6
|
+
"instanceof": "RegExp"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"minLength": 1,
|
10
|
+
"type": "string"
|
11
|
+
}
|
12
|
+
]
|
13
|
+
},
|
14
|
+
"rules": {
|
15
|
+
"oneOf": [
|
16
|
+
{
|
17
|
+
"items": {
|
18
|
+
"description": "A rule condition",
|
19
|
+
"anyOf": [
|
20
|
+
{
|
21
|
+
"$ref": "#/definitions/rule"
|
22
|
+
}
|
23
|
+
]
|
24
|
+
},
|
25
|
+
"type": "array"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"$ref": "#/definitions/rule"
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"oneOf": [
|
34
|
+
{
|
35
|
+
"type": "object",
|
36
|
+
"additionalProperties": false,
|
37
|
+
"required": [
|
38
|
+
"banner"
|
39
|
+
],
|
40
|
+
"properties": {
|
41
|
+
"banner": {
|
42
|
+
"description": "Specifies the banner",
|
43
|
+
"anyOf": [
|
44
|
+
{
|
45
|
+
"instanceof": "Function"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"type": "string"
|
49
|
+
}
|
50
|
+
]
|
51
|
+
},
|
52
|
+
"raw": {
|
53
|
+
"description": "If true, banner will not be wrapped in a comment",
|
54
|
+
"type": "boolean"
|
55
|
+
},
|
56
|
+
"entryOnly": {
|
57
|
+
"description": "If true, the banner will only be added to the entry chunks",
|
58
|
+
"type": "boolean"
|
59
|
+
},
|
60
|
+
"test": {
|
61
|
+
"description": "Include all modules that pass test assertion",
|
62
|
+
"anyOf": [
|
63
|
+
{
|
64
|
+
"$ref": "#/definitions/rules"
|
65
|
+
}
|
66
|
+
]
|
67
|
+
},
|
68
|
+
"include": {
|
69
|
+
"description": "Include all modules matching any of these conditions",
|
70
|
+
"anyOf": [
|
71
|
+
{
|
72
|
+
"$ref": "#/definitions/rules"
|
73
|
+
}
|
74
|
+
]
|
75
|
+
},
|
76
|
+
"exclude": {
|
77
|
+
"description": "Exclude all modules matching any of these conditions",
|
78
|
+
"anyOf": [
|
79
|
+
{
|
80
|
+
"$ref": "#/definitions/rules"
|
81
|
+
}
|
82
|
+
]
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"description": "The banner as function, it will be wrapped in a comment",
|
88
|
+
"instanceof": "Function"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"description": "The banner as string, it will be wrapped in a comment",
|
92
|
+
"minLength": 1,
|
93
|
+
"type": "string"
|
94
|
+
}
|
95
|
+
]
|
96
|
+
}
|
@@ -1,32 +1,32 @@
|
|
1
|
-
{
|
2
|
-
"additionalProperties": false,
|
3
|
-
"required": [
|
4
|
-
"path"
|
5
|
-
],
|
6
|
-
"properties": {
|
7
|
-
"context": {
|
8
|
-
"description": "Context of requests in the manifest file (defaults to the webpack context)",
|
9
|
-
"minLength": 1,
|
10
|
-
"type": "string"
|
11
|
-
},
|
12
|
-
"name": {
|
13
|
-
"description": "Name of the exposed dll function (external name, use value of 'output.library')",
|
14
|
-
"minLength": 1,
|
15
|
-
"type": "string"
|
16
|
-
},
|
17
|
-
"type": {
|
18
|
-
"description": "Type of the dll bundle (external type, use value of 'output.libraryTarget')",
|
19
|
-
"minLength": 1,
|
20
|
-
"type": "string"
|
21
|
-
},
|
22
|
-
"path": {
|
23
|
-
"description": "Absolute path to the manifest json file (output)",
|
24
|
-
"minLength": 1,
|
25
|
-
"type": "string"
|
26
|
-
},
|
27
|
-
"entryOnly": {
|
28
|
-
"description": "If true, only entry points will be exposed",
|
29
|
-
"type": "boolean"
|
30
|
-
}
|
31
|
-
}
|
32
|
-
}
|
1
|
+
{
|
2
|
+
"additionalProperties": false,
|
3
|
+
"required": [
|
4
|
+
"path"
|
5
|
+
],
|
6
|
+
"properties": {
|
7
|
+
"context": {
|
8
|
+
"description": "Context of requests in the manifest file (defaults to the webpack context)",
|
9
|
+
"minLength": 1,
|
10
|
+
"type": "string"
|
11
|
+
},
|
12
|
+
"name": {
|
13
|
+
"description": "Name of the exposed dll function (external name, use value of 'output.library')",
|
14
|
+
"minLength": 1,
|
15
|
+
"type": "string"
|
16
|
+
},
|
17
|
+
"type": {
|
18
|
+
"description": "Type of the dll bundle (external type, use value of 'output.libraryTarget')",
|
19
|
+
"minLength": 1,
|
20
|
+
"type": "string"
|
21
|
+
},
|
22
|
+
"path": {
|
23
|
+
"description": "Absolute path to the manifest json file (output)",
|
24
|
+
"minLength": 1,
|
25
|
+
"type": "string"
|
26
|
+
},
|
27
|
+
"entryOnly": {
|
28
|
+
"description": "If true, only entry points will be exposed",
|
29
|
+
"type": "boolean"
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
@@ -1,99 +1,99 @@
|
|
1
|
-
{
|
2
|
-
"additionalProperties": false,
|
3
|
-
"anyOf": [
|
4
|
-
{
|
5
|
-
"required": [
|
6
|
-
"manifest"
|
7
|
-
]
|
8
|
-
},
|
9
|
-
{
|
10
|
-
"required": [
|
11
|
-
"content"
|
12
|
-
]
|
13
|
-
}
|
14
|
-
],
|
15
|
-
"properties": {
|
16
|
-
"context": {
|
17
|
-
"description": "(absolute path) context of requests in the manifest (or content property)",
|
18
|
-
"type": "string",
|
19
|
-
"absolutePath": true
|
20
|
-
},
|
21
|
-
"manifest": {
|
22
|
-
"description": "An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation",
|
23
|
-
"oneOf": [
|
24
|
-
{
|
25
|
-
"type": "object",
|
26
|
-
"additionalProperties": false,
|
27
|
-
"properties": {
|
28
|
-
"content": {
|
29
|
-
"description": "The mappings from request to module id",
|
30
|
-
"minLength": 1,
|
31
|
-
"type": "object"
|
32
|
-
},
|
33
|
-
"name": {
|
34
|
-
"description": "The name where the dll is exposed (external name)",
|
35
|
-
"minLength": 1,
|
36
|
-
"type": "string"
|
37
|
-
},
|
38
|
-
"type": {
|
39
|
-
"description": "The type how the dll is exposed (external type)",
|
40
|
-
"minLength": 1,
|
41
|
-
"type": "string"
|
42
|
-
}
|
43
|
-
}
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"type": "string",
|
47
|
-
"absolutePath": true
|
48
|
-
}
|
49
|
-
]
|
50
|
-
},
|
51
|
-
"content": {
|
52
|
-
"description": "The mappings from request to module id (defaults to manifest.content)",
|
53
|
-
"minLength": 1,
|
54
|
-
"type": "object"
|
55
|
-
},
|
56
|
-
"name": {
|
57
|
-
"description": "The name where the dll is exposed (external name, defaults to manifest.name)",
|
58
|
-
"minLength": 1,
|
59
|
-
"type": "string"
|
60
|
-
},
|
61
|
-
"type": {
|
62
|
-
"description": "The way how the export of the dll bundle is used",
|
63
|
-
"enum": [
|
64
|
-
"require",
|
65
|
-
"object"
|
66
|
-
]
|
67
|
-
},
|
68
|
-
"scope": {
|
69
|
-
"description": "Prefix which is used for accessing the content of the dll",
|
70
|
-
"minLength": 1,
|
71
|
-
"type": "string"
|
72
|
-
},
|
73
|
-
"sourceType": {
|
74
|
-
"description": "How the dll is exposed (libraryTarget, defaults to manifest.type)",
|
75
|
-
"enum": [
|
76
|
-
"var",
|
77
|
-
"assign",
|
78
|
-
"this",
|
79
|
-
"window",
|
80
|
-
"global",
|
81
|
-
"commonjs",
|
82
|
-
"commonjs2",
|
83
|
-
"commonjs-module",
|
84
|
-
"amd",
|
85
|
-
"umd",
|
86
|
-
"umd2",
|
87
|
-
"jsonp"
|
88
|
-
]
|
89
|
-
},
|
90
|
-
"extensions": {
|
91
|
-
"description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope')",
|
92
|
-
"type": "array",
|
93
|
-
"items": {
|
94
|
-
"description": "An extension",
|
95
|
-
"type": "string"
|
96
|
-
}
|
97
|
-
}
|
98
|
-
}
|
99
|
-
}
|
1
|
+
{
|
2
|
+
"additionalProperties": false,
|
3
|
+
"anyOf": [
|
4
|
+
{
|
5
|
+
"required": [
|
6
|
+
"manifest"
|
7
|
+
]
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"required": [
|
11
|
+
"content"
|
12
|
+
]
|
13
|
+
}
|
14
|
+
],
|
15
|
+
"properties": {
|
16
|
+
"context": {
|
17
|
+
"description": "(absolute path) context of requests in the manifest (or content property)",
|
18
|
+
"type": "string",
|
19
|
+
"absolutePath": true
|
20
|
+
},
|
21
|
+
"manifest": {
|
22
|
+
"description": "An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation",
|
23
|
+
"oneOf": [
|
24
|
+
{
|
25
|
+
"type": "object",
|
26
|
+
"additionalProperties": false,
|
27
|
+
"properties": {
|
28
|
+
"content": {
|
29
|
+
"description": "The mappings from request to module id",
|
30
|
+
"minLength": 1,
|
31
|
+
"type": "object"
|
32
|
+
},
|
33
|
+
"name": {
|
34
|
+
"description": "The name where the dll is exposed (external name)",
|
35
|
+
"minLength": 1,
|
36
|
+
"type": "string"
|
37
|
+
},
|
38
|
+
"type": {
|
39
|
+
"description": "The type how the dll is exposed (external type)",
|
40
|
+
"minLength": 1,
|
41
|
+
"type": "string"
|
42
|
+
}
|
43
|
+
}
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"type": "string",
|
47
|
+
"absolutePath": true
|
48
|
+
}
|
49
|
+
]
|
50
|
+
},
|
51
|
+
"content": {
|
52
|
+
"description": "The mappings from request to module id (defaults to manifest.content)",
|
53
|
+
"minLength": 1,
|
54
|
+
"type": "object"
|
55
|
+
},
|
56
|
+
"name": {
|
57
|
+
"description": "The name where the dll is exposed (external name, defaults to manifest.name)",
|
58
|
+
"minLength": 1,
|
59
|
+
"type": "string"
|
60
|
+
},
|
61
|
+
"type": {
|
62
|
+
"description": "The way how the export of the dll bundle is used",
|
63
|
+
"enum": [
|
64
|
+
"require",
|
65
|
+
"object"
|
66
|
+
]
|
67
|
+
},
|
68
|
+
"scope": {
|
69
|
+
"description": "Prefix which is used for accessing the content of the dll",
|
70
|
+
"minLength": 1,
|
71
|
+
"type": "string"
|
72
|
+
},
|
73
|
+
"sourceType": {
|
74
|
+
"description": "How the dll is exposed (libraryTarget, defaults to manifest.type)",
|
75
|
+
"enum": [
|
76
|
+
"var",
|
77
|
+
"assign",
|
78
|
+
"this",
|
79
|
+
"window",
|
80
|
+
"global",
|
81
|
+
"commonjs",
|
82
|
+
"commonjs2",
|
83
|
+
"commonjs-module",
|
84
|
+
"amd",
|
85
|
+
"umd",
|
86
|
+
"umd2",
|
87
|
+
"jsonp"
|
88
|
+
]
|
89
|
+
},
|
90
|
+
"extensions": {
|
91
|
+
"description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope')",
|
92
|
+
"type": "array",
|
93
|
+
"items": {
|
94
|
+
"description": "An extension",
|
95
|
+
"type": "string"
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
@@ -1,24 +1,24 @@
|
|
1
|
-
{
|
2
|
-
"type": "object",
|
3
|
-
"additionalProperties": false,
|
4
|
-
"properties": {
|
5
|
-
"hashFunction": {
|
6
|
-
"description": "The hashing algorithm to use, defaults to 'md5'. All functions from Node.JS' crypto.createHash are supported.",
|
7
|
-
"type": "string",
|
8
|
-
"minLength": 1
|
9
|
-
},
|
10
|
-
"hashDigest": {
|
11
|
-
"description": "The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.",
|
12
|
-
"enum": [
|
13
|
-
"hex",
|
14
|
-
"latin1",
|
15
|
-
"base64"
|
16
|
-
]
|
17
|
-
},
|
18
|
-
"hashDigestLength": {
|
19
|
-
"description": "The prefix length of the hash digest to use, defaults to 4.",
|
20
|
-
"type": "number",
|
21
|
-
"minimum": 1
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
1
|
+
{
|
2
|
+
"type": "object",
|
3
|
+
"additionalProperties": false,
|
4
|
+
"properties": {
|
5
|
+
"hashFunction": {
|
6
|
+
"description": "The hashing algorithm to use, defaults to 'md5'. All functions from Node.JS' crypto.createHash are supported.",
|
7
|
+
"type": "string",
|
8
|
+
"minLength": 1
|
9
|
+
},
|
10
|
+
"hashDigest": {
|
11
|
+
"description": "The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.",
|
12
|
+
"enum": [
|
13
|
+
"hex",
|
14
|
+
"latin1",
|
15
|
+
"base64"
|
16
|
+
]
|
17
|
+
},
|
18
|
+
"hashDigestLength": {
|
19
|
+
"description": "The prefix length of the hash digest to use, defaults to 4.",
|
20
|
+
"type": "number",
|
21
|
+
"minimum": 1
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
@@ -1,26 +1,26 @@
|
|
1
|
-
{
|
2
|
-
"type": "object",
|
3
|
-
"additionalProperties": true,
|
4
|
-
"properties": {
|
5
|
-
"debug": {
|
6
|
-
"description": "Whether loaders should be in debug mode or not. debug will be removed as of webpack 3",
|
7
|
-
"type": "boolean"
|
8
|
-
},
|
9
|
-
"minimize": {
|
10
|
-
"description": "Where loaders can be switched to minimize mode",
|
11
|
-
"type": "boolean"
|
12
|
-
},
|
13
|
-
"options": {
|
14
|
-
"description": "A configuration object that can be used to configure older loaders",
|
15
|
-
"type": "object",
|
16
|
-
"additionalProperties": true,
|
17
|
-
"properties": {
|
18
|
-
"context": {
|
19
|
-
"description": "The context that can be used to configure older loaders",
|
20
|
-
"type": "string",
|
21
|
-
"absolutePath": true
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
1
|
+
{
|
2
|
+
"type": "object",
|
3
|
+
"additionalProperties": true,
|
4
|
+
"properties": {
|
5
|
+
"debug": {
|
6
|
+
"description": "Whether loaders should be in debug mode or not. debug will be removed as of webpack 3",
|
7
|
+
"type": "boolean"
|
8
|
+
},
|
9
|
+
"minimize": {
|
10
|
+
"description": "Where loaders can be switched to minimize mode",
|
11
|
+
"type": "boolean"
|
12
|
+
},
|
13
|
+
"options": {
|
14
|
+
"description": "A configuration object that can be used to configure older loaders",
|
15
|
+
"type": "object",
|
16
|
+
"additionalProperties": true,
|
17
|
+
"properties": {
|
18
|
+
"context": {
|
19
|
+
"description": "The context that can be used to configure older loaders",
|
20
|
+
"type": "string",
|
21
|
+
"absolutePath": true
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|