Skip to content

Commit 40eb8d6

Browse files
committedJan 30, 2019
Disable colors for non-interactive output
1 parent ffc70bc commit 40eb8d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020

2121
const compileOutputPaths = [];
2222
const consoleStats = this.webpackConfig.stats || _.get(this, 'webpackConfig[0].stats') || {
23-
colors: true,
23+
colors: require('tty').isatty(process.stdout.fd),
2424
hash: false,
2525
version: false,
2626
chunks: false,

0 commit comments

Comments
 (0)