Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiwikern/ngsize
Show the total size of your Angular bundle files.
https://github.com/kiwikern/ngsize
angular angular-cli angular2 angular4 cli
Last synced: 2 days ago
JSON representation
Show the total size of your Angular bundle files.
- Host: GitHub
- URL: https://github.com/kiwikern/ngsize
- Owner: kiwikern
- Created: 2017-09-16T19:03:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T20:06:05.000Z (over 7 years ago)
- Last Synced: 2024-04-14T13:53:21.119Z (9 months ago)
- Topics: angular, angular-cli, angular2, angular4, cli
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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.![image](https://user-images.githubusercontent.com/2671139/30515585-f4be476a-9b2a-11e7-8727-df68525eaf54.png)
## 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`.