Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ For more information, see https://webpack.js.org/api/cli/.`);
type: "boolean",
alias: "colors",
default: function supportsColor() {
if (process.stdout.isTTY === true) {
return require("supports-color").supportsColor;
}
return require("supports-color").stdout;
},
group: DISPLAY_GROUP,
describe: "Enables/Disables colors on the console"
Expand Down Expand Up @@ -324,10 +322,7 @@ For more information, see https://webpack.js.org/api/cli/.`);
}
});

if (
typeof outputOptions.colors === "undefined" &&
process.stdout.isTTY === true
)
if (typeof outputOptions.colors === "undefined")
Comment thread
evenstensberg marked this conversation as resolved.
outputOptions.colors = require("supports-color").stdout;

ifArg("sort-modules-by", function(value) {
Expand Down