mirror of https://github.com/webpack/webpack.git
`-p` sets NODE_ENV to production
This commit is contained in:
parent
cd251b1605
commit
e0a6aef63a
|
@ -21,6 +21,7 @@ module.exports = function(optimist, argv, convertOptions) {
|
|||
if(!argv.devtool) {
|
||||
argv.devtool = "eval-source-map";
|
||||
}
|
||||
argv["define"] = argv["define"].concat("process.env.NODE_ENV=\"production\"");
|
||||
}
|
||||
if(argv.p) {
|
||||
argv["optimize-minimize"] = true;
|
||||
|
|
Loading…
Reference in New Issue