Skip to content

Commit

Permalink
Add development build to angular.json and enable optimization in prod…
Browse files Browse the repository at this point in the history
…uction
  • Loading branch information
manuelwedler committed Sep 23, 2021
1 parent e608b9d commit 8ba0faf
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,25 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/my-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss", "src/explorer-theme.scss"],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"scripts": []
},
"configurations": {
"development": {
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"production": {
"budgets": [
{
Expand All @@ -46,21 +49,22 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
}
},
"defaultConfiguration": ""
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "my-app:build"
"browserTarget": "my-app:build:development"
},
"configurations": {
"production": {
"browserTarget": "my-app:build:production"
"browserTarget": "my-app:build:development"
}
}
},
Expand Down

0 comments on commit 8ba0faf

Please sign in to comment.