Skip to content

Commit 3f3586e

Browse files
authored
Merge pull request webpack#4282 from mohsen1/patch-1
Add more granular schema for stats in options schema
2 parents 6542e42 + 1ee598a commit 3f3586e

1 file changed

Lines changed: 102 additions & 11 deletions

File tree

‎schemas/webpackOptionsSchema.json‎

Lines changed: 102 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -569,20 +569,32 @@
569569
},
570570
"exclude": {
571571
"allOf": [
572-
{"$ref": "#/definitions/ruleSet-condition"},
573-
{"absolutePath": true}
572+
{
573+
"$ref": "#/definitions/ruleSet-condition"
574+
},
575+
{
576+
"absolutePath": true
577+
}
574578
]
575579
},
576580
"include": {
577581
"allOf": [
578-
{"$ref": "#/definitions/ruleSet-condition"},
579-
{"absolutePath": true}
582+
{
583+
"$ref": "#/definitions/ruleSet-condition"
584+
},
585+
{
586+
"absolutePath": true
587+
}
580588
]
581589
},
582590
"issuer": {
583591
"allOf": [
584-
{"$ref": "#/definitions/ruleSet-condition"},
585-
{"absolutePath": true}
592+
{
593+
"$ref": "#/definitions/ruleSet-condition"
594+
},
595+
{
596+
"absolutePath": true
597+
}
586598
]
587599
},
588600
"loader": {
@@ -613,8 +625,12 @@
613625
},
614626
"resource": {
615627
"allOf": [
616-
{"$ref": "#/definitions/ruleSet-condition"},
617-
{"absolutePath": true}
628+
{
629+
"$ref": "#/definitions/ruleSet-condition"
630+
},
631+
{
632+
"absolutePath": true
633+
}
618634
]
619635
},
620636
"resourceQuery": {
@@ -625,8 +641,12 @@
625641
},
626642
"test": {
627643
"allOf": [
628-
{"$ref": "#/definitions/ruleSet-condition"},
629-
{"absolutePath": true}
644+
{
645+
"$ref": "#/definitions/ruleSet-condition"
646+
},
647+
{
648+
"absolutePath": true
649+
}
630650
]
631651
},
632652
"use": {
@@ -873,7 +893,78 @@
873893
"description": "Used by the webpack CLI program to pass stats options.",
874894
"anyOf": [
875895
{
876-
"type": "object"
896+
"type": "object",
897+
"properties": {
898+
"context": {
899+
"type": "string",
900+
"description": "context directory for request shortening",
901+
"absolutePath": true
902+
},
903+
"hash": {
904+
"type": "boolean",
905+
"description": "add the hash of the compilation"
906+
},
907+
"version": {
908+
"type": "boolean",
909+
"description": "add webpack version information"
910+
},
911+
"timings": {
912+
"type": "boolean",
913+
"description": "add timing information"
914+
},
915+
"assets": {
916+
"type": "boolean",
917+
"description": "add assets information"
918+
},
919+
"chunks": {
920+
"type": "boolean",
921+
"description": "add chunk information"
922+
},
923+
"chunkModules": {
924+
"type": "boolean",
925+
"description": "add built modules information to chunk information"
926+
},
927+
"modules": {
928+
"type": "boolean",
929+
"description": "add built modules information"
930+
},
931+
"children": {
932+
"type": "boolean",
933+
"description": "add children information"
934+
},
935+
"cached": {
936+
"type": "boolean",
937+
"description": "add also information about cached (not built) modules"
938+
},
939+
"reasons": {
940+
"type": "boolean",
941+
"description": "add information about the reasons why modules are included"
942+
},
943+
"source": {
944+
"type": "boolean",
945+
"description": "add the source code of modules"
946+
},
947+
"errorDetails": {
948+
"type": "boolean",
949+
"description": "add details to errors (like resolving log)"
950+
},
951+
"chunkOrigins": {
952+
"type": "boolean",
953+
"description": "add the origins of chunks and chunk merging info"
954+
},
955+
"modulesSort": {
956+
"type": "string",
957+
"description": "sort the modules by that field"
958+
},
959+
"chunksSort": {
960+
"type": "string",
961+
"description": "sort the chunks by that field"
962+
},
963+
"assetsSort": {
964+
"type": "string",
965+
"description": "sort the assets by that field"
966+
}
967+
}
877968
},
878969
{
879970
"type": "boolean"

0 commit comments

Comments
 (0)