@@ -37,86 +37,122 @@ For more granular control, it is possible to specify exactly what information yo
37
37
38
38
``` js
39
39
stats: {
40
+
40
41
// fallback value for stats options when an option is not defined (has precedence over local webpack defaults)
41
42
all: undefined ,
43
+
42
44
// Add asset Information
43
45
assets: true ,
46
+
44
47
// Sort assets by a field
45
48
// You can reverse the sort with `!field`.
46
49
assetsSort: " field" ,
50
+
47
51
// Add build date and time information
48
52
builtAt: true ,
53
+
49
54
// Add information about cached (not built) modules
50
55
cached: true ,
56
+
51
57
// Show cached assets (setting this to `false` only shows emitted files)
52
58
cachedAssets: true ,
59
+
53
60
// Add children information
54
61
children: true ,
62
+
55
63
// Add chunk information (setting this to `false` allows for a less verbose output)
56
64
chunks: true ,
65
+
57
66
// Add built modules information to chunk information
58
67
chunkModules: true ,
68
+
59
69
// Add the origins of chunks and chunk merging info
60
70
chunkOrigins: true ,
71
+
61
72
// Sort the chunks by a field
62
73
// You can reverse the sort with `!field`. Default is `id`.
63
74
chunksSort: " field" ,
75
+
64
76
// Context directory for request shortening
65
77
context: " ../src/" ,
78
+
66
79
// `webpack --colors` equivalent
67
80
colors: false ,
81
+
68
82
// Display the distance from the entry point for each module
69
83
depth: false ,
84
+
70
85
// Display the entry points with the corresponding bundles
71
86
entrypoints: false ,
87
+
72
88
// Add --env information
73
89
env: false ,
90
+
74
91
// Add errors
75
92
errors: true ,
93
+
76
94
// Add details to errors (like resolving log)
77
95
errorDetails: true ,
96
+
78
97
// Exclude assets from being displayed in stats
79
98
// This can be done with a String, a RegExp, a Function getting the assets name
80
99
// and returning a boolean or an Array of the above.
81
100
excludeAssets: " filter" | / filter/ | (assetName ) => ... return true | false |
82
101
[" filter" ] | [/ filter/ ] | [(assetName ) => ... return true | false ],
102
+
83
103
// Exclude modules from being displayed in stats
84
104
// This can be done with a String, a RegExp, a Function getting the modules source
85
105
// and returning a boolean or an Array of the above.
86
106
excludeModules: " filter" | / filter/ | (moduleSource ) => ... return true | false |
87
107
[" filter" ] | [/ filter/ ] | [(moduleSource ) => ... return true | false ],
108
+
88
109
// See excludeModules
89
110
exclude: " filter" | / filter/ | (moduleSource ) => ... return true | false |
90
111
[" filter" ] | [/ filter/ ] | [(moduleSource ) => ... return true | false ],
112
+
91
113
// Add the hash of the compilation
92
114
hash: true ,
115
+
93
116
// Set the maximum number of modules to be shown
94
117
maxModules: 15 ,
118
+
95
119
// Add built modules information
96
120
modules: true ,
121
+
97
122
// Sort the modules by a field
98
123
// You can reverse the sort with `!field`. Default is `id`.
99
124
modulesSort: " field" ,
125
+
100
126
// Show dependencies and origin of warnings/errors (since webpack 2.5.0)
101
127
moduleTrace: true ,
128
+
102
129
// Show performance hint when file size exceeds `performance.maxAssetSize`
103
130
performance : true ,
131
+
104
132
// Show the exports of the modules
105
133
providedExports: false ,
134
+
106
135
// Add public path information
107
136
publicPath: true ,
137
+
108
138
// Add information about the reasons why modules are included
109
139
reasons: true ,
140
+
110
141
// Add the source code of modules
111
142
source: true ,
143
+
112
144
// Add timing information
113
145
timings: true ,
146
+
114
147
// Show which exports of a module are used
115
148
usedExports: false ,
149
+
116
150
// Add webpack version information
117
151
version: true ,
152
+
118
153
// Add warnings
119
154
warnings: true ,
155
+
120
156
// Filter warnings to be shown (since webpack 2.4.0),
121
157
// can be a String, Regexp, a function getting the warning and returning a boolean
122
158
// or an Array of a combination of the above. First match wins.
0 commit comments