From: Bill Erickson Date: Thu, 14 Jun 2018 20:52:28 +0000 (-0400) Subject: LP#1775466 Ang6 app config improvement; simplify building X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7312bcaf6c2fb82505fd54797f7512ccc027acbe;p=working%2FEvergreen.git LP#1775466 Ang6 app config improvement; simplify building Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/README.adoc b/Open-ILS/src/eg2/README.adoc index 8bd92c22b9..e4d218388d 100644 --- a/Open-ILS/src/eg2/README.adoc +++ b/Open-ILS/src/eg2/README.adoc @@ -60,20 +60,20 @@ $ npm run build # or build-watch === Compile Angular App -- Dev Mode * Uses the JIT compiler which is faster to compile, but slower in the browser. -** '--watch' option also supported. [source,sh] --------------------------------------------------------------------- -$ ng build --deploy-url /eg2/ --base-href /eg2/ --output-path ../../web/eg2/ +$ ng build [--watch] --------------------------------------------------------------------- === Compile Angular App -- Prod Mode -* Uses the AOT compiler, which is slower to compile, but faster in the browser. +* Uses the --aot compiler with --prod optimizations, which takes longer to +compiled, but creates a smaller download which runs faster in the browser. [source,sh] --------------------------------------------------------------------- -$ ng build --aot --prod --deploy-url /eg2/ --base-href /eg2/ --output-path ../../web/eg2/ +$ ng build --aot --prod --------------------------------------------------------------------- === Testing diff --git a/Open-ILS/src/eg2/angular.json b/Open-ILS/src/eg2/angular.json index d3cc725f1d..9e21ceddb2 100644 --- a/Open-ILS/src/eg2/angular.json +++ b/Open-ILS/src/eg2/angular.json @@ -11,7 +11,9 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "outputPath": "dist", + "baseHref": "/eg2", + "deployUrl": "/eg2/", + "outputPath": "../../web/eg2", "index": "src/index.html", "main": "src/main.ts", "tsConfig": "src/tsconfig.app.json", diff --git a/Open-ILS/src/eg2/src/index.html b/Open-ILS/src/eg2/src/index.html index 43bb6ac79a..ed5fa78845 100644 --- a/Open-ILS/src/eg2/src/index.html +++ b/Open-ILS/src/eg2/src/index.html @@ -3,7 +3,7 @@ AngEG - +