LP1895395: Use Angular AOT compiler for ng build
authorJane Sandberg <sandbej@linnbenton.edu>
Sat, 12 Sep 2020 15:22:54 +0000 (08:22 -0700)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 14 Sep 2020 13:54:59 +0000 (09:54 -0400)
As of angular 9, the angular documentation recommends using the AOT
compiler for ng build: https://angular.io/guide/ivy

This would provide a bit more consistency for developers (since some
errors only display in AOT, others only display in JIT, and we want to
make sure that the AOT in particular is error-free so that builds don't
break).

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/angular.json

index 42e7980..650083a 100644 (file)
@@ -11,6 +11,7 @@
         "build": {
           "builder": "@angular-devkit/build-angular:browser",
           "options": {
+            "aot": true,
             "baseHref": "/eg2/en-US",
             "deployUrl": "/eg2/en-US/",
             "outputPath": "../../web/eg2/en-US",