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

Commit

Permalink
note on environment paths
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed May 24, 2016
1 parent e78f0e6 commit 5417f46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ Builder.prototype.reset = function(baseLoader) {

var loaderConfig = loader.config;
loader.config = function(cfg) {
// plugin loader is dev, Node environment
loader.pluginLoader.config(cfg);
var lCfg = extend({}, cfg);
// build environment is not production or the browser, but will follow nodeConfig, because the build is in Node
// build loader is Node environment only
lCfg.browserConfig = lCfg.productionConfig = lCfg.devConfig = undefined;
loaderConfig.call(this, lCfg);
loader.configHash = generateConfigHash(loader);
Expand Down

0 comments on commit 5417f46

Please sign in to comment.