=== 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
"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",
<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">