Skip to content

Commit

Permalink
fix(Webpack): try to load config
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed May 9, 2018
1 parent e960632 commit 832a1ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/blockchain-wallet-v4-frontend/webpack.config.js
Expand Up @@ -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')
Expand Down

0 comments on commit 832a1ad

Please sign in to comment.