diff --git a/console/ui/angular.json b/console/ui/angular.json index ea15f24ad9..a4f9675ace 100644 --- a/console/ui/angular.json +++ b/console/ui/angular.json @@ -29,6 +29,7 @@ "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", + "aot": true, "assets": [ "src/favicon.ico", "src/static" @@ -48,7 +49,7 @@ "configurations": { "production": { "outputPath": "dist/prod", - "baseHref": "/", + "deployUrl": "static/", "fileReplacements": [ { "replace": "src/environments/environment.ts", @@ -66,7 +67,7 @@ { "type": "initial", "maximumWarning": "2mb", - "maximumError": "3mb" + "maximumError": "10mb" }, { "type": "anyComponentStyle", @@ -77,7 +78,7 @@ }, "production-nt": { "outputPath": "dist/prod-nt", - "baseHref": "/", + "deployUrl": "static/", "fileReplacements": [ { "replace": "src/environments/environment.ts", @@ -95,7 +96,7 @@ { "type": "initial", "maximumWarning": "2mb", - "maximumError": "3mb" + "maximumError": "10mb" }, { "type": "anyComponentStyle", @@ -105,7 +106,7 @@ ] } }, - "defaultConfiguration": "" + "defaultConfiguration": "production" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", diff --git a/console/ui/dist/prod-nt/index.html b/console/ui/dist/prod-nt/index.html index ee8cf2feae..2e6b640b56 100644 --- a/console/ui/dist/prod-nt/index.html +++ b/console/ui/dist/prod-nt/index.html @@ -5,9 +5,9 @@ - + - + \ No newline at end of file diff --git a/console/ui/dist/prod-nt/3rdpartylicenses.txt b/console/ui/dist/prod-nt/static/3rdpartylicenses.txt similarity index 100% rename from console/ui/dist/prod-nt/3rdpartylicenses.txt rename to console/ui/dist/prod-nt/static/3rdpartylicenses.txt diff --git a/console/ui/dist/prod-nt/main.90406e943321b759.js b/console/ui/dist/prod-nt/static/main.90406e943321b759.js similarity index 100% rename from console/ui/dist/prod-nt/main.90406e943321b759.js rename to console/ui/dist/prod-nt/static/main.90406e943321b759.js diff --git a/console/ui/dist/prod-nt/polyfills.7173a9fc984af667.js b/console/ui/dist/prod-nt/static/polyfills.7173a9fc984af667.js similarity index 100% rename from console/ui/dist/prod-nt/polyfills.7173a9fc984af667.js rename to console/ui/dist/prod-nt/static/polyfills.7173a9fc984af667.js diff --git a/console/ui/dist/prod-nt/runtime.72fa9d749641f9d8.js b/console/ui/dist/prod-nt/static/runtime.72fa9d749641f9d8.js similarity index 100% rename from console/ui/dist/prod-nt/runtime.72fa9d749641f9d8.js rename to console/ui/dist/prod-nt/static/runtime.72fa9d749641f9d8.js diff --git a/console/ui/dist/prod-nt/styles.f1672f2c7326a24e.css b/console/ui/dist/prod-nt/static/styles.f1672f2c7326a24e.css similarity index 100% rename from console/ui/dist/prod-nt/styles.f1672f2c7326a24e.css rename to console/ui/dist/prod-nt/static/styles.f1672f2c7326a24e.css diff --git a/console/ui/dist/prod/index.html b/console/ui/dist/prod/index.html index c8b61482b6..8962dc9ce6 100644 --- a/console/ui/dist/prod/index.html +++ b/console/ui/dist/prod/index.html @@ -5,9 +5,9 @@ - + - + \ No newline at end of file diff --git a/console/ui/dist/prod/3rdpartylicenses.txt b/console/ui/dist/prod/static/3rdpartylicenses.txt similarity index 100% rename from console/ui/dist/prod/3rdpartylicenses.txt rename to console/ui/dist/prod/static/3rdpartylicenses.txt diff --git a/console/ui/dist/prod/main.9fe54d698b3be879.js b/console/ui/dist/prod/static/main.9fe54d698b3be879.js similarity index 100% rename from console/ui/dist/prod/main.9fe54d698b3be879.js rename to console/ui/dist/prod/static/main.9fe54d698b3be879.js diff --git a/console/ui/dist/prod/polyfills.7173a9fc984af667.js b/console/ui/dist/prod/static/polyfills.7173a9fc984af667.js similarity index 100% rename from console/ui/dist/prod/polyfills.7173a9fc984af667.js rename to console/ui/dist/prod/static/polyfills.7173a9fc984af667.js diff --git a/console/ui/dist/prod/runtime.72fa9d749641f9d8.js b/console/ui/dist/prod/static/runtime.72fa9d749641f9d8.js similarity index 100% rename from console/ui/dist/prod/runtime.72fa9d749641f9d8.js rename to console/ui/dist/prod/static/runtime.72fa9d749641f9d8.js diff --git a/console/ui/dist/prod/styles.f1672f2c7326a24e.css b/console/ui/dist/prod/static/styles.f1672f2c7326a24e.css similarity index 100% rename from console/ui/dist/prod/styles.f1672f2c7326a24e.css rename to console/ui/dist/prod/static/styles.f1672f2c7326a24e.css diff --git a/console/ui/package.json b/console/ui/package.json index 38cc935291..2c206b50af 100644 --- a/console/ui/package.json +++ b/console/ui/package.json @@ -5,6 +5,7 @@ "ng": "ng", "start": "ng serve", "build": "ng build --configuration production && ng build --configuration=production-nt", + "postbuild": "mv dist/prod/*.js dist/prod/*.css dist/prod/*.txt dist/prod/static/ && mv dist/prod-nt/*.js dist/prod-nt/*.css dist/prod-nt/*.txt dist/prod-nt/static/", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e"