Skip to content

Commit 55398b5

Browse files
jayjunmichael-ciniawsky
authored andcommitted
fix(bin/options): correct check for color support (options.color) (#1555)
1 parent 927a2b3 commit 55398b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ const options = {
5757
type: 'boolean',
5858
alias: 'colors',
5959
default: function supportsColor() {
60-
return require('supports-color');
60+
// Use `require('supports-color').stdout` for supports-color >= 5.0.0.
61+
// See https://github.com/webpack/webpack-dev-server/pull/1555.
62+
return require('supports-color').stdout;
6163
},
6264
group: DISPLAY_GROUP,
6365
describe: 'Enables/Disables colors on the console'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy