mirror of https://github.com/webpack/webpack.git
sorted out a little bug
This commit is contained in:
parent
820f304a9a
commit
ad02d3c630
|
@ -90,10 +90,6 @@ if(!outputOptions.json) {
|
||||||
outputOptions.chunks = bool;
|
outputOptions.chunks = bool;
|
||||||
});
|
});
|
||||||
|
|
||||||
ifArg("hide-modules", function(bool) {
|
|
||||||
outputOptions.modules = !bool;
|
|
||||||
});
|
|
||||||
|
|
||||||
ifArg("display-reasons", function(bool) {
|
ifArg("display-reasons", function(bool) {
|
||||||
outputOptions.reasons = bool;
|
outputOptions.reasons = bool;
|
||||||
});
|
});
|
||||||
|
@ -112,6 +108,13 @@ if(!outputOptions.json) {
|
||||||
outputOptions.reasons = true;
|
outputOptions.reasons = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ifArg("hide-modules", function(bool) {
|
||||||
|
if(bool) {
|
||||||
|
outputOptions.modules = false;
|
||||||
|
outputOptions.chunkModules = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
var webpack = require("../lib/webpack.js");
|
var webpack = require("../lib/webpack.js");
|
||||||
|
|
||||||
Error.stackTrackLimit = 30;
|
Error.stackTrackLimit = 30;
|
||||||
|
|
10
lib/Stats.js
10
lib/Stats.js
|
@ -449,13 +449,15 @@ Stats.jsonToString = function jsonToString(obj, useColors) {
|
||||||
normal(" ");
|
normal(" ");
|
||||||
}
|
}
|
||||||
if(origin.module) {
|
if(origin.module) {
|
||||||
var module = modulesByIdentifier["$"+origin.module];
|
|
||||||
normal("[");
|
normal("[");
|
||||||
normal(module.id);
|
normal(origin.moduleId);
|
||||||
normal("] ");
|
normal("] ");
|
||||||
bold(module.name);
|
var module = modulesByIdentifier["$"+origin.module];
|
||||||
if(origin.loc) {
|
if(module) {
|
||||||
|
bold(module.name);
|
||||||
normal(" ");
|
normal(" ");
|
||||||
|
}
|
||||||
|
if(origin.loc) {
|
||||||
normal(origin.loc);
|
normal(origin.loc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue