Skip to content

Commit 4c86af4

Browse files
committed
fixed bug when --define is not set
1 parent 5440797 commit 4c86af4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/convert-argv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = function(optimist, argv, convertOptions) {
2424
}
2525
if(argv.p) {
2626
argv["optimize-minimize"] = true;
27-
argv["define"] = argv["define"].concat("process.env.NODE_ENV=\"production\"");
27+
argv["define"] = [].concat(argv["define"] || []).concat("process.env.NODE_ENV=\"production\"");
2828
}
2929

3030
var configFileLoaded = false;

0 commit comments

Comments
 (0)