The Ionic
framework uses Angular
.
Angular 6 defines environments in ./src/environments/environment.stage.ts
.
When building an Angular app, I can select the environment with the parameter --env=stage
or --configuration==stage
in Angular 6.
To build the ionic app, I use ionic cordova build <platform>
which in the background first builds the angular app, before packing it in the Cordova framework.
How can I specify the environment aka configuration for the angular build?