https://github.com/bleenco/angular-closure-compiler
Angular4 Closure Compiler
https://github.com/bleenco/angular-closure-compiler
Last synced: about 1 month ago
JSON representation
Angular4 Closure Compiler
- Host: GitHub
- URL: https://github.com/bleenco/angular-closure-compiler
- Owner: bleenco
- License: mit
- Created: 2016-12-18T06:49:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-17T21:42:41.000Z (about 8 years ago)
- Last Synced: 2025-03-22T22:24:09.452Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 613 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Angular Closure Compiler Test
This demo uses Google Closure Compiler for compiling Angular 4 applications.
It produces a super optimized build size which results in a fast page load.
### Prerequisites
* Node.js 6.0.0+
* Java SDKs (the best latest)### Steps
The `npm run build` command executes TypeScript compiler with RxJS library and targets `es2015` that is needed by Closure Compiler.
The successful RxJS build stores the library to `vendor/rxjs`. A node script starts an application bundling and stores the Closure Compiler configuration in `build.js`.
A successful build amounts to less than `100K` in size and the final gzipped build has only `32K`!
We include `zone.js` in `index.html`.
#### Run the build
```sh
$ npm install$ npm run build
$ npm run server # start the demo build
```#### Build Size
Results are for basic `app works!` app.
```sh
-rw-r--r-- 1 jan staff 99K Mar 24 17:06 bundle.js
-rw-r--r-- 1 jan staff 32K Mar 24 17:06 bundle.js.gz
```#### LICENCE
MIT