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
Original file line number Diff line number Diff line change
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 # to comment.