When I change the environments configuration in angular.json,
"customer1-dev": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.customer1.ts"
}
],
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
},
When I add 'fileReplacements' in the configuration, my app run very slow.
and when I remove the 'fileReplacements' then app run faster.
I had create a environment setup for the different-2 customer with the same app source-code. Reference URL That's why I need to setup configuration in angular.json.
Environment setup for customer specific, is working fine but app run very slow.
optimization: trueduring development it will be slow. A development config may be helpful