Manually Tuning Webpack Builds

Jamund Ferguson
Jul 22, 2016 · 4 min read
Image for post
Image for post
100 largest files in your webpack build
webpack --display-modules --sort-modules-by size
Image for post
Image for post

Investigating the source of the Duplication

Image for post
Image for post

Stopping the Duplication Madness

244kB  /Users/.../dev/paypal/web/~/lodash/dist/lodash.compat.js
259kB  /Users/jamuferguson/dev/paypal/web/~/jquery/dist/jquery.js
273kB ./lib/jquery-1.10.2.js
"jquery": "^1 || ^2"

freeCodeCamp.org

This is no longer updated.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store