My Angular2 web app consists of
- Third party plugins like jquery, pdfjs, e.t.c.
- Has services defined!
export class WorkerService{
constructor() {
}
}
When I am building a Dev AOT build using angular cli, there was no problem! But when I am doing a Prod AOT build using angular cli, it gives me an error saying, "Unexpected token : name (WorkerService)". The command I used is
ng build --prod --aot
What might I be doing wrong?? I don't have a spec file related to my service, would that be a problem? Thanks.
Angular CLI version: 1.0.0-beta.25.5