cordova - Ionic 2 custom config -


i'm building ionic 2 app multiple companies. therefore, need able set multiple custom config values. these values located in config.xml(for example: name/description), in variables.scss(for example: primary/secondary color), , have custom configuration file holding server/database values.

what want achieve, every time build app new company, have edit values in 1 single config file, instead of 3 config files in current situation.

i have been trying find way access config.xml values, without success. have tried setting values of config.xml & variables.scss own custom config file, without success.

does know how tackle problem?

i think best way achieve using hooks. don't think it's possible change scss via hooks and, it, need create config files por every action want , change before every build.

so maybe easier if develop architecture of app that's easy mantain , change needed variables every client.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -