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

Commit bf0028c

Browse files
committed
build should follow nodeConfig
1 parent 295eeec commit bf0028c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/builder.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ Builder.prototype.reset = function(baseLoader) {
154154
loader.config = function(cfg) {
155155
loader.pluginLoader.config(cfg);
156156
var lCfg = extend({}, cfg);
157-
lCfg.browserConfig = lCfg.nodeConfig = lCfg.productionConfig = undefined;
157+
// build environment is not production or the browser, but will follow nodeConfig, because the build is in Node
158+
lCfg.browserConfig = lCfg.productionConfig = undefined;
158159
loaderConfig.call(this, lCfg);
159160
loader.configHash = generateConfigHash(loader);
160161
};

0 commit comments

Comments
 (0)