Reputation: 8519
I want to use the settings in enviroments.prod.ts to build my android production build with ionic 4.
in angular.json under the configuration section, the replacement is defined
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
},
However when I run ionic cordova build android --prod
the environment doesn't get copied.
Upvotes: 2
Views: 518