Skip to content

kiwikern/ngsize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngsize

You think the Angular CLI should totally print the total build size?
Your calculating skills are not good enough to sum it up yourself?
ngsize to the rescue.

image

How to use

Install

Either install globally: npm install -g ngsize

Or install as dev dependency and add it to your projects run scripts:

 npm install --save-dev ngsize

In your package.json:

"scripts": {
  "ngsize": "ngsize"
}

Usage

Pipe the output of the ng build command to ngsize:

ng build | ngsize

If you have installed ngsize only locally, you need to use it within an npm run script:

"scripts": {
  "ng": "ng",
  "ngsize": "ngsize",
  "build": "ng build | ngsize"
}

And then npm run build.

About

Show the total size of your Angular bundle files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published