mirror of https://github.com/webpack/webpack.git
Merge pull request #774 from Turbo87/colors
Use "supports-color" to detect if terminal supports colors
This commit is contained in:
commit
c20e1a4a39
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue