Webpack + Express = Compressed Static Assets
Using algorithms like gzip or brotli drastically reduces the size of your assets and can improve the load time of your app – in the case of this blog, by 25%. In this post I am going to explain how to add gzip and brotli compression to an existing webpack setup and serve the compressed files using express.