diff --git a/bin/process-options.js b/bin/process-options.js index 4975899a055..0b938f1669e 100644 --- a/bin/process-options.js +++ b/bin/process-options.js @@ -37,7 +37,7 @@ module.exports = function processOptions(yargs, argv) { }); if (typeof outputOptions.colors === "undefined") - outputOptions.colors = require("supports-color").stdout; + outputOptions.colors = require("supports-color"); ifArg("sort-modules-by", function(value) { outputOptions.modulesSort = value; diff --git a/bin/webpack.js b/bin/webpack.js index d4c8e959ee6..a995844f486 100755 --- a/bin/webpack.js +++ b/bin/webpack.js @@ -80,7 +80,7 @@ type: "boolean", alias: "colors", default: function supportsColor() { - return require("supports-color").stdout; + return require("supports-color"); }, group: DISPLAY_GROUP, describe: "Enables/Disables colors on the console" @@ -318,7 +318,7 @@ }); if (typeof outputOptions.colors === "undefined") - outputOptions.colors = require("supports-color").stdout; + outputOptions.colors = require("supports-color"); ifArg("sort-modules-by", function(value) { outputOptions.modulesSort = value;