Skip to content

Commit 0a32eeb

Browse files
authored
docs(configuration): update stats.mdx (#7157)
1 parent 7af2725 commit 0a32eeb

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/content/configuration/stats.mdx

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ contributors:
2323

2424
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.
2525

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.
2727

2828
```js
2929
module.exports = {
@@ -1232,31 +1232,31 @@ Tells `stats` to display chunk parents, children and siblings.
12321232

12331233
### Sorting fields
12341234

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.
12501250
- `'index2'`
12511251
- `'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.
12561256

12571257
### Extending stats behaviours
12581258

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.
12601260

12611261
**webpack.config.js**
12621262

0 commit comments

Comments
 (0)