https://github.com/beginor/ng-app-aot-rollup-build
Build angular2 app with aot rollup for production
https://github.com/beginor/ng-app-aot-rollup-build
Last synced: about 1 year ago
JSON representation
Build angular2 app with aot rollup for production
- Host: GitHub
- URL: https://github.com/beginor/ng-app-aot-rollup-build
- Owner: beginor
- License: mit
- Created: 2016-11-14T04:48:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-14T09:55:19.000Z (over 9 years ago)
- Last Synced: 2025-03-22T17:23:24.098Z (about 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ng-app-aot-rollup-build
Build angular2 app with aot rollup for production
## Usage
First, install dependent packages by:
```sh
npm install
```
create `dist` folder if not exists
```sh
makedir dist
```
For normal production build, use broserify and uglifyjs, run:
```sh
npm run prod
```
For optimized production build, use aot and tree shaking, run:
```sh
npm run prod-aot
```
For size analysis report, just, run:
```sh
ls -lh dist
```
the `dist/bundle-aot.min.js` compressed with gzip will less then 50K, ideal for production use.