Skip to content

Commit

Permalink
fix(bin/options): correct check for color support (options.color) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjun authored and michael-ciniawsky committed Oct 30, 2018
1 parent 927a2b3 commit 55398b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/options.js
Expand Up @@ -57,7 +57,9 @@ const options = {
type: 'boolean',
alias: 'colors',
default: function supportsColor() {
return require('supports-color');
// Use `require('supports-color').stdout` for supports-color >= 5.0.0.
// See https://github.com/webpack/webpack-dev-server/pull/1555.
return require('supports-color').stdout;
},
group: DISPLAY_GROUP,
describe: 'Enables/Disables colors on the console'
Expand Down

0 comments on commit 55398b5

Please sign in to comment.