diff --git a/Dockerfile b/Dockerfile index 97921e5..f7aefe8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN npm i -g @angular/cli RUN npm i COPY . . -ARG CONFIGURATION=develop +ARG CONFIGURATION=demo RUN ng build --configuration=$CONFIGURATION ### STAGE 2: Run ### diff --git a/angular.json b/angular.json index 95ca28e..af7be11 100644 --- a/angular.json +++ b/angular.json @@ -77,6 +77,27 @@ } ] }, + "demo": { + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kb", + "maximumError": "1mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ], + "outputHashing": "all", + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.demo.ts" + } + ] + }, "develop": { "budgets": [ { @@ -115,8 +136,14 @@ "production": { "browserTarget": "eoepca-portal:build:production" }, - "development": { - "browserTarget": "eoepca-portal:build:development" + "demo": { + "browserTarget": "eoepca-portal:build:demo" + }, + "staging": { + "browserTarget": "eoepca-portal:build:staging" + }, + "develop": { + "browserTarget": "eoepca-portal:build:develop" } }, "defaultConfiguration": "develop"