如何改变webpack编译输出的颜色?

How to change the colour of webpack compilation output?

webpack编译时运行window中的文字颜色以红色为主。如何将其更改为白色(或其他颜色)并且在出现错误时仅显示红色?

你不能。 Webpack 将编译进度写入 stderr 流。并且根据WebStorm中的Error output preferences (Preferences | Editor | Color Scheme | Console Colors, Console/Error output, default is red)高亮显示。那里没有解释 ANSI 颜色 (IDEA-137769)