Passing NODE_ENV environment variable from Webpack to code
Hello everybody,
I wrote this article with a very specific title since it’s a common practice for different use cases. I thought a lot of people would find this answer while looking for a method to pass a NODE_ENV variable exposed in the npm script
of the package.json directly to the code.