Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
build should follow nodeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed May 10, 2016
1 parent 295eeec commit bf0028c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/builder.js
Expand Up @@ -154,7 +154,8 @@ Builder.prototype.reset = function(baseLoader) {
loader.config = function(cfg) {
loader.pluginLoader.config(cfg);
var lCfg = extend({}, cfg);
lCfg.browserConfig = lCfg.nodeConfig = lCfg.productionConfig = undefined;
// build environment is not production or the browser, but will follow nodeConfig, because the build is in Node
lCfg.browserConfig = lCfg.productionConfig = undefined;
loaderConfig.call(this, lCfg);
loader.configHash = generateConfigHash(loader);
};
Expand Down

0 comments on commit bf0028c

Please sign in to comment.