Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49247

Replace variables in config.xml during build

$
0
0

@ajcrites wrote:

I’m using ionic v2 and setting plugins using ionic state reset (plugins are in cordovaPlugins in package.json). I’m using the cordova-plugin-fabric which has some required variables. I don’t want these hard coded in my config.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 get ionic state reset --variable to work. I’m also trying to use webpack to move a build.config.xml to config.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

Read full topic


Viewing all articles
Browse latest Browse all 49247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>