Tuesday, June 20, 2017

A dirty hack that took 30% off our Webpack size



At my day job, we’re using Webpack 2 to make our JavaScript as small as possible. Bundle splitting ensures web apps get only the code they need, individual vendor files ensure caching stays as stable as possible, dead code elimination and tree shaking make our files small.

No comments:

JavaScript Event Loop Explained

Now for the long answer, let me try through 2 sample code snippets. Here we have the main function which has 2 console.log commands loggin...