Skip to content

Commit

Permalink
Fix angular config
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-pimenta-DME committed Dec 19, 2023
1 parent b8e1f79 commit fd48e08
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###
Expand Down
31 changes: 29 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit fd48e08

Please sign in to comment.