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; };