Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix webpack environment variables #2120

Merged
merged 4 commits into from
Feb 28, 2019
Merged

Conversation

sabau
Copy link
Contributor

@sabau sabau commented Feb 27, 2019

Description:

  • Set environment variables with proper plugin, some git merge cut out STARGATE and RPC in the past
  • FAUCET environment variable added

Thank you! 🚀


For contributor:

  • Added entries in CHANGELOG.md with issue # and GitHub username
  • Reviewed Files changed in the github PR explorer
  • Attach screenshots of the UI components on the PR description (if applicable)
  • Scope of work approved for big PRs

For reviewer:

  • Manually tested the changes on the UI

Signed-off-by: Karoly Albert Szabo <[email protected]>
@codecov
Copy link

codecov bot commented Feb 28, 2019

Codecov Report

Merging #2120 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #2120   +/-   ##
========================================
  Coverage    95.31%   95.31%           
========================================
  Files          110      110           
  Lines         2581     2581           
  Branches       104      104           
========================================
  Hits          2460     2460           
  Misses         112      112           
  Partials         9        9

1 similar comment
@codecov
Copy link

codecov bot commented Feb 28, 2019

Codecov Report

Merging #2120 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #2120   +/-   ##
========================================
  Coverage    95.31%   95.31%           
========================================
  Files          110      110           
  Lines         2581     2581           
  Branches       104      104           
========================================
  Hits          2460     2460           
  Misses         112      112           
  Partials         9        9

NODE_ENV: JSON.stringify(process.env.NODE_ENV)
}
}),
new webpack.EnvironmentPlugin([`NODE_ENV`, `RELEASE`, `STARGATE`, `RPC`, `RELEASE`, `FAUCET`]),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
new webpack.EnvironmentPlugin([`NODE_ENV`, `RELEASE`, `STARGATE`, `RPC`, `RELEASE`, `FAUCET`]),
new webpack.EnvironmentPlugin([`NODE_ENV`, `STARGATE`, `RPC`, `RELEASE`, `FAUCET`]),

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think I will fall back on the dear old DefinePlugin, MacOS and linux behave slightly differently (or can be just different types of shells) with this one, it seems to just forward

- Different behaviour for falsey values like empty strings on different OS
@faboweb faboweb merged commit 62656e7 into develop Feb 28, 2019
@faboweb faboweb deleted the saabu/fix-webpack-env-variables branch February 28, 2019 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants