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;
|
||||
});
|
||||
|
||||
ifArg("hide-modules", function(bool) {
|
||||
outputOptions.modules = !bool;
|
||||
});
|
||||
|
||||
ifArg("display-reasons", function(bool) {
|
||||
outputOptions.reasons = bool;
|
||||
});
|
||||
|
@ -112,6 +108,13 @@ if(!outputOptions.json) {
|
|||
outputOptions.reasons = true;
|
||||
}
|
||||
|
||||
ifArg("hide-modules", function(bool) {
|
||||
if(bool) {
|
||||
outputOptions.modules = false;
|
||||
outputOptions.chunkModules = false;
|
||||
}
|
||||
});
|
||||
|
||||
var webpack = require("../lib/webpack.js");
|
||||
|
||||
Error.stackTrackLimit = 30;
|
||||
|
|
10
lib/Stats.js
10
lib/Stats.js
|
@ -449,13 +449,15 @@ Stats.jsonToString = function jsonToString(obj, useColors) {
|
|||
normal(" ");
|
||||
}
|
||||
if(origin.module) {
|
||||
var module = modulesByIdentifier["$"+origin.module];
|
||||
normal("[");
|
||||
normal(module.id);
|
||||
normal(origin.moduleId);
|
||||
normal("] ");
|
||||
bold(module.name);
|
||||
if(origin.loc) {
|
||||
var module = modulesByIdentifier["$"+origin.module];
|
||||
if(module) {
|
||||
bold(module.name);
|
||||
normal(" ");
|
||||
}
|
||||
if(origin.loc) {
|
||||
normal(origin.loc);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue