ngsize
v1.0.2
Published
Sums up the sizes of your Angular bundles and shows the total file size.
Downloads
2
Readme
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.
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
.