How We Used Webpack to Reduce Our JS Footprint by 50

In this article, I’m going to show you how we went from 30 requests for 3.1MB of minified uncompressed JavaScript to 19 requests for 2.2MB of minified uncompressed JS. Why uncompressed? Because Rails doesn’t gzip on localhost, and our production servers are running the new setup already.
We weren’t doing anything stupid before. Tree shaking, minification, code splitting to avoid JavaScript users don’t need… we had all of that. We even split our frontend into 5 or 6 discreet apps, each with its own internal code splitting.