From cbfb5fa84e28c12cecb110737167800f861b8a2c Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Wed, 18 Dec 2019 19:32:15 +1030 Subject: [PATCH] Set env after reading from environment file --- lib/common.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/common.js b/lib/common.js index 697b1c5..39d1351 100755 --- a/lib/common.js +++ b/lib/common.js @@ -213,12 +213,6 @@ const getConfig = () => { config.footerHtml = typeof config.footerHtml !== 'undefined' ? escape.decode(config.footerHtml) : null; config.googleAnalytics = typeof config.googleAnalytics !== 'undefined' ? escape.decode(config.googleAnalytics) : null; - // set the environment for files - config.env = '.min'; - if(process.env.NODE_ENV === 'development' || process.env.NODE_ENV === undefined){ - config.env = ''; - } - // setup theme config.themeViews = ''; if(typeof config.theme === 'undefined' || config.theme === ''){ @@ -234,6 +228,12 @@ const getConfig = () => { } }); + // set the environment for files + config.env = '.min'; + if(process.env.NODE_ENV === 'development' || process.env.NODE_ENV === undefined){ + config.env = ''; + } + return config; };