-
Notifications
You must be signed in to change notification settings - Fork 39
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
Environment variables set on webpack.config.client.development.js are not respected. #19
Comments
Provide an exact use case |
I want to add a new env variable that has different values for production and development. I did so by adding it on the link I posted above and it's undefined. The env variable is for configuring an exception logging library. |
Post the exact code |
On webpack.config.client.development.js I add webpack.config.client.development.js
client/rendering-service/main.js and client/src/components/Menu.js
Output on the terminal after running npm run dev
|
Webpack variables aren't available in |
That's interesting. If I add the variable in |
No, it can not be available in |
When I set an environment variable as in here: the values do not make it through. For example, if I add a new entry and then console.log it, I get undefined
The text was updated successfully, but these errors were encountered: