You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining values for process prefer 'process.env.NODE_ENV': JSON.stringify('production') over process: { env: { NODE_ENV: JSON.stringify('production') } }. Using the latter will overwrite the process object which can break compatibility with some modules that expect other values on the process object to be defined.
I am trying to pass some env vars to my components using webpack's
DefinePlugin
, but I keep getting only{ NODE_ENV: 'development' }
onprocess.env
.I forked the example repo, as an example. This is my setup: https://github.com/renancouto/example/commit/980967e7df67aaa0c26423a604c521f240586313
The text was updated successfully, but these errors were encountered: