Webpack

Javascript

Module Swapping for better Development and Testing

Module swapping gives us the ability to recognize and swap modules at build time. These are often handy to change the module loaded for a specific environment.

Read
Javascript

Reducing JS Bundle Part Two: Minification and dead code elimination

The first strategy we tackle in our series. The goal of minification and dead code elimination is to set up an automated way to remove unnecessary whitespace, shrink variables and function to take up the least bytes, and ultimatly delete unused code.

Read
Javascript

Reducing JS Bundle Part One: Measurement and high level

Let's first talk about Javascript bundles. Bundles are usually referring to Javascript and CSS bundles sent from the server to the user's browser. When we discuss it in passing, the primary focus is typically the size of the initial Javascript bundle sent to to the client to initialize the web app, and how that bundle affects the amount of time before a user can use the app.

Read