1 min readSep 15, 2018
Hi,
Found the article very helpful for upgrading to webpack 4.
I was trying to pass custom values for the NODE_ENV variable using — env.NODE_ENV in the script and use its value in the React code. But I always get its value as production when I build the project and host it. The values of other env variables are as given in the script. I’m using the same config as mentioned. Am I missing something?