Skip to content

Commit f91514b

Browse files
committed
Closes #437: Updated reCaptcha to v3, fixed angular build settings
1 parent 12444b6 commit f91514b

25 files changed

+611
-500
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ COPY ./ /usr/local/app/
1111

1212
# Install all dependencies, both production and development, build, and remove dev dependencies
1313
RUN npm ci && \
14-
npm run build:local && \
15-
npm prune --force --production
14+
npm run build:prod && \
15+
npm prune --omit=dev
1616

1717
# ---------- Release ----------
1818
FROM nginx:1.29.1-alpine-slim

angular.json

Lines changed: 9 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -71,49 +71,27 @@
7171
"serviceWorker": true,
7272
"ngswConfigPath": "ngsw-config.json"
7373
},
74-
"local": {
75-
"crossOrigin": "anonymous",
76-
"fileReplacements": [
77-
{
78-
"replace": "src/environments/environment.ts",
79-
"with": "src/environments/environment.local.ts"
80-
}
81-
],
82-
"optimization": true,
83-
"outputHashing": "all",
84-
"sourceMap": false,
85-
"namedChunks": false,
86-
"extractLicenses": true,
74+
"development": {
75+
"optimization": false,
76+
"extractLicenses": false,
77+
"sourceMap": true,
78+
"namedChunks": true,
8779
"vendorChunk": true,
88-
"buildOptimizer": true,
89-
"budgets": [
90-
{
91-
"type": "initial",
92-
"maximumWarning": "2mb",
93-
"maximumError": "5mb"
94-
},
95-
{
96-
"type": "anyComponentStyle",
97-
"maximumWarning": "6kb",
98-
"maximumError": "10kb"
99-
}
100-
],
101-
"serviceWorker": true,
102-
"ngswConfigPath": "ngsw-config.json"
80+
"buildOptimizer": false
10381
}
10482
}
10583
},
10684
"serve": {
10785
"builder": "@angular-devkit/build-angular:dev-server",
10886
"options": {
109-
"buildTarget": "switcher-management:build"
87+
"buildTarget": "switcher-management:build:development"
11088
},
11189
"configurations": {
11290
"production": {
11391
"buildTarget": "switcher-management:build:production"
11492
},
115-
"local": {
116-
"buildTarget": "switcher-management:build:local"
93+
"development": {
94+
"buildTarget": "switcher-management:build:development"
11795
}
11896
}
11997
},
@@ -131,18 +109,6 @@
131109
"src/**/*.html"
132110
]
133111
}
134-
},
135-
"e2e": {
136-
"builder": "@angular-devkit/build-angular:protractor",
137-
"options": {
138-
"protractorConfig": "e2e/protractor.conf.js",
139-
"devServerTarget": "switcher-management:serve"
140-
},
141-
"configurations": {
142-
"production": {
143-
"devServerTarget": "switcher-management:serve:production"
144-
}
145-
}
146112
}
147113
}
148114
}

0 commit comments

Comments
 (0)