Merge pull request #774 from Turbo87/colors

Use "supports-color" to detect if terminal supports colors
This commit is contained in:
Tobias Koppers 2015-02-10 18:37:47 +01:00
commit c20e1a4a39
2 changed files with 3 additions and 4 deletions

View File

@ -77,9 +77,7 @@ ifArg("json", function(bool) {
outputOptions.json = bool;
});
ifArg("colors", function(bool) {
outputOptions.colors = bool;
});
outputOptions.colors = require("supports-color");
ifArg("sort-modules-by", function(value) {
outputOptions.modulesSort = value;

View File

@ -15,7 +15,8 @@
"webpack-core": "~0.4.8",
"node-libs-browser": "~0.4.0",
"watchpack": "^0.2.1",
"tapable": "~0.1.8"
"tapable": "~0.1.8",
"supports-color": "^1.2.0"
},
"licenses": [
{