Skip to content

Commit

Permalink
fix(webpack.config): correct env default
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJS committed Sep 20, 2015
1 parent 307815c commit 6db5e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ function env(configEnv) {
switch (toString(configEnv[NODE_ENV])) {
case '[object Object]' : return Object.assign({}, configEnv.all || {}, configEnv[NODE_ENV]);
case '[object Array]' : return [].concat(configEnv.all || [], configEnv[NODE_ENV]);
case '[object Undefined]' : return configEnv[NODE_ENV];
default : return configEnv.all;
case '[object Undefined]' : return configEnv.all;
default : return configEnv[NODE_ENV];
}
}

Expand Down

0 comments on commit 6db5e56

Please sign in to comment.