From 832a1ad562058f8ed48afbd68540071dacfdb115 Mon Sep 17 00:00:00 2001 From: plondon Date: Wed, 9 May 2018 14:35:09 -0400 Subject: [PATCH] fix(Webpack): try to load config --- packages/blockchain-wallet-v4-frontend/webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/blockchain-wallet-v4-frontend/webpack.config.js b/packages/blockchain-wallet-v4-frontend/webpack.config.js index fe4b0473ea7..27fd1f4b403 100644 --- a/packages/blockchain-wallet-v4-frontend/webpack.config.js +++ b/packages/blockchain-wallet-v4-frontend/webpack.config.js @@ -19,11 +19,11 @@ let envConfig = {} let mockWalletOptions let iSignThisDomain -// load, parse and log application configuration if not a CI build -mockWalletOptions = require('./../../config/wallet-options-v4.json') -iSignThisDomain = mockWalletOptions.platforms.web.coinify.config.iSignThisDomain try { envConfig = require(PATHS.envConfig + process.env.NODE_ENV + '.js') + // load, parse and log application configuration if not a CI build + mockWalletOptions = require('./../../config/wallet-options-v4.json') + iSignThisDomain = mockWalletOptions.platforms.web.coinify.config.iSignThisDomain } catch (e) { console.log(chalk.red('\u{1F6A8} WARNING \u{1F6A8} ') + chalk.yellow(`Failed to load ${process.env.NODE_ENV}.js config file! Using the production config instead.\n`)) envConfig = require(PATHS.envConfig + 'production.js')