Skip to content

Commit 5761875

Browse files
author
Joe Bottigliero
committed
[fix] webpackOptionsSchema.json
- fixes failing stats tests by adding various options to the webpackOptionsSchema.json as well as fixing invalid options provided in test configurations.
1 parent e0d4501 commit 5761875

File tree

3 files changed

+44
-4
lines changed

3 files changed

+44
-4
lines changed

schemas/webpackOptionsSchema.json

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,8 +1003,36 @@
10031003
"description": "add --env information"
10041004
},
10051005
"colors": {
1006-
"type": "boolean",
1007-
"description": "`webpack --colors` equivalent"
1006+
"oneOf": [
1007+
{
1008+
"type": "boolean",
1009+
"description": "`webpack --colors` equivalent"
1010+
},
1011+
{
1012+
"type": "object",
1013+
"additionalProperties": false,
1014+
"properties": {
1015+
"bold": {
1016+
"type": "string"
1017+
},
1018+
"red": {
1019+
"type": "string"
1020+
},
1021+
"green": {
1022+
"type": "string"
1023+
},
1024+
"cyan": {
1025+
"type": "string"
1026+
},
1027+
"magenta": {
1028+
"type": "string"
1029+
},
1030+
"yellow": {
1031+
"type": "string"
1032+
}
1033+
}
1034+
}
1035+
]
10081036
},
10091037
"maxModules": {
10101038
"type": "number",
@@ -1030,6 +1058,10 @@
10301058
"type": "boolean",
10311059
"description": "add also information about cached (not built) modules"
10321060
},
1061+
"cachedAssets": {
1062+
"type": "boolean",
1063+
"description": "Show cached assets (setting this to `false` only shows emitted files)"
1064+
},
10331065
"reasons": {
10341066
"type": "boolean",
10351067
"description": "add information about the reasons why modules are included"
@@ -1054,6 +1086,10 @@
10541086
"description": "Please use excludeModules instead.",
10551087
"$ref": "#/definitions/filter-types"
10561088
},
1089+
"entrypoints": {
1090+
"type": "boolean",
1091+
"description": "Display the entry points with the corresponding bundles"
1092+
},
10571093
"errorDetails": {
10581094
"type": "boolean",
10591095
"description": "add details to errors (like resolving log)"
@@ -1078,6 +1114,10 @@
10781114
"type": "string",
10791115
"description": "sort the assets by that field"
10801116
},
1117+
"publicPath": {
1118+
"type": "boolean",
1119+
"description": "Add public path information"
1120+
},
10811121
"providedExports": {
10821122
"type": "boolean",
10831123
"description": "show exports provided by modules"

test/statsCases/module-deduplication-named/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
},
1010
stats: {
1111
hash: false,
12-
timing: false,
12+
timings: true,
1313
chunks: true,
1414
chunkModules: true,
1515
modules: false

test/statsCases/module-deduplication/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
},
1010
stats: {
1111
hash: false,
12-
timing: false,
12+
timings: true,
1313
chunks: true,
1414
chunkModules: true,
1515
modules: false

0 commit comments

Comments
 (0)