I’ve just added a development section under build/configurations
"development": {
"optimization": false,
"sourceMap": true,
"namedChunks": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": false,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "6mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
And under serve/configurations:
"development": {
"browserTarget": "studio:build:development"
}
Then for running it on the go (embed web-server), run this command:
ng serve myapp --configuration development
Also for building and running the development version on a web-server (like NGinx) you could run this command:
ng build --configuration development