antonybudianto / angular-starter

:star: Gulp Angular Starter using TypeScript (Updated to 4.4.3)

Home Page:https://antonybudianto.github.io/angular-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RC6 AOT compilation

l0stpenguin opened this issue · comments

Hi,

First of all, i would like to say its an awesome starter project, i tried many seed projects but found this one really good. (Y) I am currently using it for developing a new website in JIT compilation. I am now trying to use the Ahead of time (AOT) compiler with it but i am a bit lost. Is it possible to integrate AOT compilation in this sample? Can you provide me with some steps or guide me how to implement it as a feature?

Thanks

Currently there's compilation issue in RC6, you can take a look at feat-compiler-cli branch, and run gulp ngc

the unknown error:

stream.js:74
      throw er; // Unhandled stream error in pipe.
      ^
Error: bundle.js from UglifyJs
SyntaxError: Unexpected token: punc ({) [./~/@angular/core/src/change_detection/change_detection.js:8,0]

The error resolved, will be available in new Starter 2.0 project since I'll switch to Webpack (breaking change)