Skip to content

Commit

Permalink
Fix angular dev environment not being used by ng serve
Browse files Browse the repository at this point in the history
Apparently angular changed in the meantime to make prod the default, this restores dev for ng serve.
  • Loading branch information
lcdr authored and Xiphoseer committed Oct 5, 2023
1 parent efb9a90 commit 70f1a73
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
"aot": true
},
"configurations": {
"development": {
"optimization": false,
"namedChunks": true,
"extractLicenses": false,
"vendorChunk": true,
"buildOptimizer": false,
"sourceMap": true
},
"production": {
"outputPath": "dist",
"optimization": true,
Expand All @@ -54,12 +62,14 @@
}
]
}
}
},
"defaultConfiguration": "production",
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"defaultConfiguration": "",
"options": {
"browserTarget": "lu-explorer:build",
"browserTarget": "lu-explorer:build:development",
"proxyConfig": "src/proxy.conf.json"
},
"configurations": {
Expand Down

0 comments on commit 70f1a73

Please sign in to comment.