Skip to content

Commit

Permalink
Merge pull request #2120 from cosmos/saabu/fix-webpack-env-variables
Browse files Browse the repository at this point in the history
Fix webpack environment variables
  • Loading branch information
faboweb authored Feb 28, 2019
2 parents f8fc804 + fe54055 commit 62656e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- [\#2015](https://github.com/cosmos/voyager/issues/2015) fixed error that showed wrong message when Ledger's screensaver mode was on @fedekunze
- Reconnected event was not triggered after reconnection @faboweb
- [\#2094](https://github.com/cosmos/voyager/pull/2094) fix Toolbar @faboweb
- Fix Webpack Env variables @sabau

### Changed

Expand Down
11 changes: 6 additions & 5 deletions webpack.renderer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,13 @@ const rendererConfig = {
new webpack.DefinePlugin({
"global.GENTLY": false
}),
new webpack.DefinePlugin({
"process.env.RELEASE": `"${commitHash}"`
}),
new webpack.DefinePlugin({
"process.env": {
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
FAUCET: JSON.stringify(process.env.FAUCET),
RPC: JSON.stringify(process.env.RPC),
STARGATE: JSON.stringify(process.env.STARGATE),
RELEASE: JSON.stringify(commitHash)
}
}),
new HtmlWebpackPlugin({
Expand Down Expand Up @@ -210,4 +211,4 @@ if (process.env.RELEASE) {
)
}

module.exports = rendererConfig
module.exports = rendererConfig

0 comments on commit 62656e7

Please sign in to comment.