Webpack 4 Automatically Makes process.env.NODE_ENV Available In Your JavaScript

added by JavaScript Kicks
4/9/2019 2:10:29 PM

681 Views

Ben Nadel just discovered that Webpack 4 will implicitly use the DefinePlugin to automatically replace the substring, "process.env.NODE_ENV", with the current build mode as it compiles his JavaScript and TypeScript applications. This will make it easy to optimize Angular's performance in a production build.


0 comments