Terminal output color settings for webpack stats (#31583)

Webpack stats support terminal color definition string as such:

```json
colors: {
  green: '\u001b[32m',
},
```
This commit is contained in:
Grgur Grisogono
2018-12-21 11:39:27 +00:00
committed by John Reilly
parent 37c37a0e2a
commit f91a63c5e3
+2 -1
View File
@@ -15,6 +15,7 @@
// John Reilly <https://github.com/johnnyreilly>
// Ryan Waskiewicz <https://github.com/rwaskiewicz>
// Kyle Uehlein <https://github.com/kuehlein>
// Grgur Grisogono <https://github.com/grgur>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -1228,7 +1229,7 @@ declare namespace webpack {
interface ToStringOptionsObject extends ToJsonOptionsObject {
/** `webpack --colors` equivalent */
colors?: boolean;
colors?: boolean | string;
}
type ToStringOptions = Preset | ToStringOptionsObject;