Environment and index.html

Ionic v4 using the Angular CLI v6 allows to use different environments configurations, cool :+1:

But, anyone knows how to manage different configuration inside the index.html?

For example, in my index.html I’ve got a CSP rule wich restrict connect-src to my prod server. Of course when I debug locally I want to connect to the proxy in order to connect to my staging. So far I always ran gulp scripts to switch between config and payed attention to never commit the changes, but maybe with the introduction of environments there is another solution now?