You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/configuration/other-options.md
+54Lines changed: 54 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -184,3 +184,57 @@ module.exports = {
184
184
name:'admin-app'
185
185
};
186
186
```
187
+
188
+
### infrastructureLogging
189
+
190
+
Options for infrastructure level logging.
191
+
192
+
`object: {}`
193
+
194
+
#### infrastructureLogging.level
195
+
196
+
`string`
197
+
198
+
Enable infrastructure logging output. Similar to [`stats.logging`](/configuration/stats/#stats) option but for infrastructure. No default value is given.
199
+
200
+
Possible values:
201
+
202
+
-`'none'` - disable logging
203
+
-`'error'` - errors only
204
+
-`'warn'` - errors and warnings only
205
+
-`'info'` - errors, warnings, and info messages
206
+
-`'log'` - errors, warnings, info messages, log messages, groups, clears. Collapsed groups are displayed in a collapsed state.
207
+
-`'verbose'` - log everything except debug and trace. Collapsed groups are displayed in expanded state.
Enable debug information of specified loggers such as plugins or loaders. Similar to [`stats.loggingDebug`](/configuration/stats/#stats) option but for infrastructure. No default value is given.
|`"errors-only"`|_none_| Only output when errors happen |
39
-
|`"errors-warnings"`|_none_| Only output errors and warnings happen |
40
-
|`"minimal"`|_none_| Only output when errors or new compilation happen |
41
-
|`"none"`|`false`| Output nothing |
42
-
|`"normal"`|`true`| Standard output |
43
-
|`"verbose"`|_none_| Output everything |
38
+
|`'errors-only'`|_none_| Only output when errors happen |
39
+
|`'errors-warnings'`|_none_| Only output errors and warnings happen |
40
+
|`'minimal'`|_none_| Only output when errors or new compilation happen |
41
+
|`'none'`|`false`| Output nothing |
42
+
|`'normal'`|`true`| Standard output |
43
+
|`'verbose'`|_none_| Output everything |
44
44
45
45
For more granular control, it is possible to specify exactly what information you want. Please note that all of the options in this object are optional.
46
46
@@ -50,7 +50,8 @@ For more granular control, it is possible to specify exactly what information yo
50
50
module.exports= {
51
51
//...
52
52
stats: {
53
-
// fallback value for stats options when an option is not defined (has precedence over local webpack defaults)
53
+
// fallback value for stats options when an option is not defined
54
+
// (has precedence over local webpack defaults)
54
55
all:undefined,
55
56
56
57
// Add asset Information
@@ -60,7 +61,7 @@ module.exports = {
60
61
// You can reverse the sort with `!field`.
61
62
// Some possible values: 'id' (default), 'name', 'size', 'chunks', 'failed', 'issuer'
62
63
// For a complete list of fields see the bottom of the page
63
-
assetsSort:"field",
64
+
assetsSort:'field',
64
65
65
66
// Add build date and time information
66
67
builtAt:true,
@@ -90,10 +91,10 @@ module.exports = {
90
91
// You can reverse the sort with `!field`. Default is `id`.
91
92
// Some other possible values: 'name', 'size', 'chunks', 'failed', 'issuer'
92
93
// For a complete list of fields see the bottom of the page
93
-
chunksSort:"field",
94
+
chunksSort:'field',
94
95
95
96
// Context directory for request shortening
96
-
context:"../src/",
97
+
context:'../src/',
97
98
98
99
// `webpack --colors` equivalent
99
100
colors:false,
@@ -116,22 +117,48 @@ module.exports = {
116
117
// Exclude assets from being displayed in stats
117
118
// This can be done with a String, a RegExp, a Function getting the assets name
118
119
// and returning a boolean or an Array of the above.
0 commit comments