Library > webpack
Introduction to webpack
Creating Multiple Bundles for Multiple Pages with Webpack - Ep. 7
January 19th 2017 | 4.9k views
Typically, webpack will store our code in one big bundle which can be good because it decreases the amount of requests made to our server—however—if we’re putting everything into one file, we’re forcing the user to load excess code that the page may not need in order to function.
So how do we make use of module bundling while still creating specific scripts for specific pages? The answer is having multiple entry points that compile into multiple bundles. In this tutorial, I’ll teach you exactly how to implement this using web pack.