Skip to content

Commit c7f2fd8

Browse files
grgurmontogeek
authored andcommitted
docs(config): Added information on settings stats colors (#2731)
Added information on setting stats colors using ANSI escape sequences.
1 parent 393431a commit c7f2fd8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/content/configuration/stats.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ contributors:
1111
- renjithvk
1212
- Raiondesu
1313
- EugeneHlushko
14+
- grgur
1415
---
1516

1617
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.
@@ -224,3 +225,16 @@ For `assetsSort`, `chunksSort` and `moduleSort` there are several possible field
224225
- `issuerId` - an id of the issuer;
225226
- `issuerName` - a name of the issuer;
226227
- `issuerPath` - a full issuer object. There's no real need to sort by this field;
228+
229+
### Colors
230+
231+
You can specify your own terminal output colors using [ANSI escape sequences](https://en.wikipedia.org/wiki/ANSI_escape_code)
232+
233+
```js
234+
module.exports = {
235+
//...
236+
colors: {
237+
green: '\u001b[32m',
238+
},
239+
};
240+
```

0 commit comments

Comments
 (0)