From 32959b5f2041f9e7d0ccb01256771dc916075318 Mon Sep 17 00:00:00 2001 From: M Clark Date: Tue, 5 Apr 2016 14:38:05 +0800 Subject: [PATCH] Keep the alias for config This alias is needed to load the config for the env and pass ConfigTest.js --- cfg/base.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cfg/base.js b/cfg/base.js index 0f6cfad..7dc3595 100644 --- a/cfg/base.js +++ b/cfg/base.js @@ -38,9 +38,11 @@ module.exports = { `${defaultSettings.srcPath}/styles`, `${defaultSettings.srcPath}/helpers`, `${defaultSettings.srcPath}/data`, - `${defaultSettings.srcPath}/config` + process.env.REACT_WEBPACK_ENV, `${defaultSettings.srcPath}` - ] + ], + alias: { + config: `${defaultSettings.srcPath}/config` + process.env.REACT_WEBPACK_ENV + } }, module: {} };