Webpack 2 Deep Dive Webpack 2 Deep Dive

Minifying & Source Maps

Minifying the bundle generated from Webpack can be done by adding the “-p” flag. This creates a production build. After configuring the production build, Kent demonstrates how to add source maps to make the production code easier to debug. The preferred way to create source maps is to generate them in a separate .map file so they are only loaded when the browser developer tools are open.
Get Unlimited Access Now