LP#1775466 Ang6 app config improvement; simplify building
authorBill Erickson <berickxx@gmail.com>
Thu, 14 Jun 2018 20:52:28 +0000 (16:52 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 5 Sep 2018 14:05:23 +0000 (10:05 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/README.adoc
Open-ILS/src/eg2/angular.json
Open-ILS/src/eg2/src/index.html

index 8bd92c2..e4d2183 100644 (file)
@@ -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
index d3cc725..9e21ced 100644 (file)
@@ -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",
index 43bb6ac..ed5fa78 100644 (file)
@@ -3,7 +3,7 @@
 <head>
   <meta charset="utf-8">
   <title i18n="Page Title">AngEG</title>
-  <base href="/webby">
+  <base href="/eg2">
 
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <link rel="icon" type="image/x-icon" href="favicon.ico">