@ajcrites wrote:
I’m using ionic v2 and setting plugins using
ionic state reset
(plugins are incordovaPlugins
inpackage.json
). I’m using thecordova-plugin-fabric
which has some required variables. I don’t want these hard coded in myconfig.xml
– I want them to be set from environment variables at build time. I’m open to a variety of solutions, but I can’t getionic state reset --variable
to work. I’m also trying to use webpack to move abuild.config.xml
toconfig.xml
with string replacment: https://stackoverflow.com/questions/45426046/text-replacement-on-a-copied-file-with-webpack – but this doesn’t seem to work with Ionic’s webpack configuration.Is there a suggested way to keep hard coded variables out of
config.xml
?
Posts: 1
Participants: 1