Skip to content

Commit 776c6c4

Browse files
authored
Add more granular schema for stats in options schema
1 parent 89bc16c commit 776c6c4

1 file changed

Lines changed: 71 additions & 1 deletion

File tree

‎schemas/webpackOptionsSchema.json‎

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,77 @@
873873
"description": "Used by the webpack CLI program to pass stats options.",
874874
"anyOf": [
875875
{
876-
"type": "object"
876+
"type": "object",
877+
"properties": {
878+
"context": {
879+
"type": "string",
880+
"description": "context directory for request shortening"
881+
},
882+
"hash": {
883+
"type": "boolean",
884+
"description": "add the hash of the compilation"
885+
},
886+
"version": {
887+
"type": "boolean",
888+
"description": "add webpack version information"
889+
},
890+
"timings": {
891+
"type": "boolean",
892+
"description": "add timing information"
893+
},
894+
"assets": {
895+
"type": "boolean",
896+
"description": "add assets information"
897+
},
898+
"chunks": {
899+
"type": "boolean",
900+
"description": "add chunk information"
901+
},
902+
"chunkModules": {
903+
"type": "boolean",
904+
"description": "add built modules information to chunk information"
905+
},
906+
"modules": {
907+
"type": "boolean",
908+
"description": "add built modules information"
909+
},
910+
"children": {
911+
"type": "boolean",
912+
"description": "add children information"
913+
},
914+
"cached": {
915+
"type": "boolean",
916+
"description": "add also information about cached (not built) modules"
917+
},
918+
"reasons": {
919+
"type": "boolean",
920+
"description": "add information about the reasons why modules are included"
921+
},
922+
"source": {
923+
"type": "boolean",
924+
"description": "add the source code of modules"
925+
},
926+
"errorDetails": {
927+
"type": "boolean",
928+
"description": "add details to errors (like resolving log)"
929+
},
930+
"chunkOrigins": {
931+
"type": "boolean",
932+
"description": "add the origins of chunks and chunk merging info"
933+
},
934+
"modulesSort": {
935+
"type": "string",
936+
"description": "sort the modules by that field"
937+
},
938+
"chunksSort": {
939+
"type": "string",
940+
"description": "sort the chunks by that field"
941+
},
942+
"assetsSort": {
943+
"type": "string",
944+
"description": "sort the assets by that field"
945+
}
946+
}
877947
},
878948
{
879949
"type": "boolean"

0 commit comments

Comments
 (0)