Skip to content

Commit bf67dd6

Browse files
Merge branch 'master' into fix/socksjs-path-2
2 parents 1327568 + 1fe82de commit bf67dd6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
stage: Test (MacOS)
1919
os: 'osx'
2020
env: SCRIPT=test
21-
node_js: 'stable'
21+
# Node 10 instead of 'stable' since Node 11 segfaults
22+
# https://github.com/webpack/webpack-dev-server/pull/1588
23+
node_js: 10
2224
- <<: *osx
2325
node_js: 'lts/*'
2426
- <<: *osx

bin/options.js

+3-1
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)