最佳答案
I have an Angular application that I am trying to debug in VS Code.
When I compile and run the application (ng serve
) the breakpoints are bound:
However, when I specify a different configuration e.g. -c qa
or -c uat
they are unbound:
"uat": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.uat.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": false,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
},
1.50.1
83.0.4103.122
4.12.11
2020.10.2217