Skip to main content
Version: older

Analyze the size of the application

This document explains how to create a stats report that give an overview of the size of the js generated with the Angular application.
Stats

Prerequisite

You should install webpack-bundle-analyzer :

  • In the terminal run the command:
npm install -g webpack-bundle-analyzer

The doc of this project is here.

Generate the stat

Run the command:

npm run stats

=> The stats will appear in a web browser at url : http:\localhost:4299 => different size appear the size to challenge is the parsed size. At the end the real size will be the parsed size or the gziped depending on how is configured your production server.

Additional references: