Webpack 2 Deep Dive Webpack 2 Deep Dive

Development vs Production Environments

Since the Webpack config file is a JavaScript file, it can contain conditional logic to run code based on the environment. Kent demonstrates how to pass an env variable into the module to determine if the application is running in development or production. This allows him to alter the way the source maps are generated for each environment.
Get Unlimited Access Now