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/stats.mdx
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ contributors:
23
23
24
24
The `stats` option lets you precisely control what bundle information gets displayed. This can be a nice middle ground if you don't want to use `quiet` or `noInfo` because you want some bundle information, but not all of it.
25
25
26
-
W> This option does not have any effect when using the Node.js API. You need to pass the stats options to the `stats.toString()` resp. `stats.toJson()` calls instead.
26
+
W> This option does not have any effect when using the [Node.js API](/api/node). You need to pass the stats options to the `stats.toString()` resp. `stats.toJson()` calls instead.
27
27
28
28
```js
29
29
module.exports= {
@@ -1232,31 +1232,31 @@ Tells `stats` to display chunk parents, children and siblings.
1232
1232
1233
1233
### Sorting fields
1234
1234
1235
-
For `assetsSort`, `chunksSort` and `modulesSort` there are several possible fields that you can sort items by:
1236
-
1237
-
-`'id'`is the item's id;
1238
-
-`'name'` - a item's name that was assigned to it upon importing;
1239
-
-`'size'` - a size of item in bytes;
1240
-
-`'chunks'` - what chunks the item originates from (for example, if there are multiple subchunks for one chunk - the subchunks will be grouped together according to their main chunk);
1241
-
-`'errors'` - amount of errors in items;
1242
-
-`'warnings'` - amount of warnings in items;
1243
-
-`'failed'` - whether the item has failed compilation;
1244
-
-`'cacheable'` - whether the item is cacheable;
1245
-
-`'built'` - whether the asset has been built;
1246
-
-`'prefetched'` - whether the asset will be prefetched;
1247
-
-`'optional'` - whether the asset is optional;
1248
-
-`'identifier'` - identifier of the item;
1249
-
-`'index'` - item's processing index;
1235
+
For `assetsSort`, `chunksSort`, and `modulesSort` there are several possible fields that you can sort items by:
1236
+
1237
+
-`'id'`- the item's id,
1238
+
-`'name'` - the item's name that was assigned to it upon importing,
1239
+
-`'size'` - the size of item in bytes,
1240
+
-`'chunks'` - what chunks the item originates from (for example, if there are multiple subchunks for one chunk: the subchunks will be grouped according to their main chunk),
1241
+
-`'errors'` - number of errors in items,
1242
+
-`'warnings'` - number of warnings in items,
1243
+
-`'failed'` - whether the item has failed compilation,
1244
+
-`'cacheable'` - whether the item is cacheable,
1245
+
-`'built'` - whether the asset has been built,
1246
+
-`'prefetched'` - whether the asset will be prefetched,
1247
+
-`'optional'` - whether the asset is optional.
1248
+
-`'identifier'` - identifier of the item.
1249
+
-`'index'` - item's processing index.
1250
1250
-`'index2'`
1251
1251
-`'profile'`
1252
-
-`'issuer'` - an identifier of the issuer;
1253
-
-`'issuerId'` - an id of the issuer;
1254
-
-`'issuerName'` - a name of the issuer;
1255
-
-`'issuerPath'` - a full issuer object. There's no real need to sort by this field;
1252
+
-`'issuer'` - an identifier of the issuer.
1253
+
-`'issuerId'` - an id of the issuer.
1254
+
-`'issuerName'` - a name of the issuer.
1255
+
-`'issuerPath'` - a full issuer object. There's no real need to sort by this field.
1256
1256
1257
1257
### Extending stats behaviours
1258
1258
1259
-
If you want to use one of the pre-defined behaviours e.g. `'minimal'` but still override one or more of the rules: specify the desired `stats.preset` and add the customized or additional rules afterwards.
1259
+
If you want to use one of the presets e.g. `'minimal'` but still override some of the rules: specify the desired `stats.preset` and add the customized or additional rules afterwards.
0 commit comments