Webpack build produces a bundle (app.js). The bundle contains scripts and styles. In this post, I will show how to analyze the bundle size.

Analyze bundle size

There is a command to produce build statistics in the form of JSON file.

webpack --profile --json > stats.json

There is an online analyse tool to analyze the build statistics. On uploading the JSON file, the analyse tool shows a dashboard.…

Read More