Skip to content

Commit 13596ba

Browse files
committed
allow to hide modules
1 parent 254c81c commit 13596ba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/webpack.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ optimist
3232

3333
.string("sort-assets-by").describe("sort-assets-by")
3434

35+
.boolean("hide-modules").describe("hide-modules")
36+
3537
.boolean("display-chunks").describe("display-chunks")
3638

3739
.boolean("display-error-details").describe("display-error-details")
@@ -84,10 +86,14 @@ ifArg("sort-assets-by", function(value) {
8486

8587
if(!outputOptions.json) {
8688
ifArg("display-chunks", function(bool) {
87-
outputOptions.modules = !bool ;
89+
outputOptions.modules = !bool;
8890
outputOptions.chunks = bool;
8991
});
9092

93+
ifArg("hide-modules", function(bool) {
94+
outputOptions.modules = !bool;
95+
});
96+
9197
ifArg("display-reasons", function(bool) {
9298
outputOptions.reasons = bool;
9399
});

0 commit comments

Comments
 (0)