-1

Can we use this AOT mode for dev or qa mode by passing --aot flags in ng build command like "ng build --env=dev --aot". Actually I have tried but its not compiling with 'AOT'? Could any one suggest some solution?

1 Answers1

0

Yes, you can by adding this flag

ng build --aot=true  

the default value for --aot is false. (in non prod environments)

You can see more detail for the build options here https://github.com/angular/angular-cli/blob/master/docs/documentation/build.md

Isuru Fonseka
  • 601
  • 4
  • 15
  • Thanks. ya Agree,but its with out minified. Can we minify as well using ng build? official docs says we cant do Minification using angular-cli. – Sathiya Vasagam S Sep 12 '17 at 17:54