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

Question: can the build error if variables are not found? #63

Open
JakeSidSmith opened this issue Jan 8, 2021 · 0 comments
Open

Question: can the build error if variables are not found? #63

JakeSidSmith opened this issue Jan 8, 2021 · 0 comments

Comments

@JakeSidSmith
Copy link

I'm not sure if there is already an option for this, but if not, it would be nice if we could choose to have the build error when trying to replace process.env.WHATEVER if the variable is not defined (falsey?).

Similar to https://webpack.js.org/plugins/environment-plugin/

If an environment variable is not found during bundling and no default value was provided, webpack will throw an error instead of a warning.

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

No branches or pull requests

1 participant