X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fangular.json;h=817e32ce7df01dba26fafb037bbc019db5feb974;hb=b3f6966f626c9d58e443280ff3ce17e44a2873e4;hp=be2d42992a43307e2261a7172c3019b6be489323;hpb=f507d92d55ee77fad16cc024ea95c869e0d5dc32;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/angular.json b/webapp-frontend/angular.json index be2d429..817e32c 100644 --- a/webapp-frontend/angular.json +++ b/webapp-frontend/angular.json @@ -10,13 +10,14 @@ "prefix": "rd", "schematics": { "@schematics/angular:component": { - "styleext": "scss" - } - }, + "style": "scss" + } + }, "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { + "aot": true, "outputPath": "dist/controlpanelApp", "index": "src/index.html", "main": "src/main.ts", @@ -31,15 +32,12 @@ "node_modules/@fortawesome/fontawesome-free/scss/solid.scss", "node_modules/@fortawesome/fontawesome-free/scss/regular.scss", "node_modules/@fortawesome/fontawesome-free/scss/brands.scss", - "node_modules/angular-bootstrap-md/scss/bootstrap/bootstrap.scss", - "node_modules/angular-bootstrap-md/scss/mdb-free.scss", - "node_modules/material-design-icons/iconfont/material-icons.css", "src/styles.scss", "node_modules/ngx-toastr/toastr.css" ], "scripts": [ - "node_modules/chart.js/dist/Chart.js", - "node_modules/hammerjs/hammer.min.js" + "node_modules/chart.js/dist/Chart.js", + "node_modules/hammerjs/hammer.min.js" ] }, "configurations": { @@ -64,6 +62,24 @@ "type": "initial", "maximumWarning": "2mb", "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ] + }, + "mock": { + "budgets": [ + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ], + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.mock.ts" } ] } @@ -77,6 +93,9 @@ "configurations": { "production": { "browserTarget": "controlpanelApp:build:production" + }, + "mock": { + "browserTarget": "controlpanelApp:build:mock" } } }, @@ -146,5 +165,8 @@ } } }, - "defaultProject": "controlpanelApp" -} + "defaultProject": "controlpanelApp", + "cli": { + "analytics": false + } +} \ No newline at end of file