Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ COPY ./ /usr/local/app/

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

# ---------- Release ----------
FROM nginx:1.29.1-alpine-slim
Expand Down
52 changes: 9 additions & 43 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,49 +71,27 @@
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
},
"local": {
"crossOrigin": "anonymous",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.local.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true,
"vendorChunk": true,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
],
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
"buildOptimizer": false
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"buildTarget": "switcher-management:build"
"buildTarget": "switcher-management:build:development"
},
"configurations": {
"production": {
"buildTarget": "switcher-management:build:production"
},
"local": {
"buildTarget": "switcher-management:build:local"
"development": {
"buildTarget": "switcher-management:build:development"
}
}
},
Expand All @@ -131,18 +109,6 @@
"src/**/*.html"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "switcher-management:serve"
},
"configurations": {
"production": {
"devServerTarget": "switcher-management:serve:production"
}
}
}
}
}
Expand Down
Loading