File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ var util = require("util");
1717var optimist = require ( "optimist" )
1818 . usage ( "webpack " + require ( "../package.json" ) . version + "\n" +
1919 "Usage: http://webpack.github.io/docs/cli.html" )
20-
20+
2121require ( "./config-optimist" ) ( optimist ) ;
2222
2323optimist
2424
2525 . boolean ( "json" ) . alias ( "json" , "j" ) . describe ( "json" )
26-
26+
2727 . boolean ( "colors" ) . alias ( "colors" , "c" ) . describe ( "colors" )
2828
2929 . string ( "sort-modules-by" ) . describe ( "sort-modules-by" )
@@ -50,7 +50,7 @@ optimist
5050
5151 . boolean ( "display-reasons" ) . alias ( "display-reasons" , "verbose" ) . alias ( "display-reasons" , "v" ) . describe ( "display-reasons" ) ;
5252
53-
53+
5454var argv = optimist . argv ;
5555
5656var options = require ( "./convert-argv" ) ( optimist , argv ) ;
@@ -124,7 +124,7 @@ if(!outputOptions.json) {
124124 if ( bool )
125125 outputOptions . cachedAssets = true ;
126126 } ) ;
127-
127+
128128 if ( ! outputOptions . exclude && ! argv [ "display-modules" ] )
129129 outputOptions . exclude = [ "node_modules" , "bower_components" , "jam" , "components" ] ;
130130} else {
You can’t perform that action at this time.
0 commit comments