mirror of https://github.com/webpack/webpack.git
set NODE_ENV production on -p not on -d
This commit is contained in:
parent
67656b90e2
commit
96d3b1398e
|
|
@ -21,10 +21,10 @@ module.exports = function(optimist, argv, convertOptions) {
|
|||
if(!argv.devtool) {
|
||||
argv.devtool = "eval-cheap-module-source-map";
|
||||
}
|
||||
argv["define"] = argv["define"].concat("process.env.NODE_ENV=\"production\"");
|
||||
}
|
||||
if(argv.p) {
|
||||
argv["optimize-minimize"] = true;
|
||||
argv["define"] = argv["define"].concat("process.env.NODE_ENV=\"production\"");
|
||||
}
|
||||
|
||||
var configFileLoaded = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue