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
Is there a way to access process.env.NODE_ENV values in project JS files?
I mean, something similar as I do in webpack. I can access to process.env.NODE_ENV from a js file's project to do some code or another depending on the environment.
For the moment I can only access environmental variable in grunt tasks.
Thanks.
The text was updated successfully, but these errors were encountered:
Hello,
I have the same need to include a debug mechanisms in my dev build. In particular I like to include Redux Dev Tools in my dev build and remove it from my prod build
@Huespal how can you access those variables from your Gruntfile.js? I'm trying to load them from a .env file but I cannot read them in my Gruntfile. Thx!
@Huespal how can you access those variables from your Gruntfile.js? I'm trying to load them from a .env file but I cannot read them in my Gruntfile. Thx!
Is there a way to access process.env.NODE_ENV values in project JS files?
I mean, something similar as I do in webpack. I can access to process.env.NODE_ENV from a js file's project to do some code or another depending on the environment.
For the moment I can only access environmental variable in grunt tasks.
Thanks.
The text was updated successfully, but these errors were encountered: