Cordova config.xml environment variables

后端 未结 1 1465
暗喜
暗喜 2021-02-05 13:01

The Scenario:

I\'m building an Ionic3 application, and my config.xml have some data that I want to be able to change according to my environm

相关标签:
1条回答
  • 2021-02-05 13:04

    One solution could be to create hooks for before_plugin_install and after_plugin_install.

    On before_plugin_install copy the cordova.tpl.xml to cordova.xml.
    ... Plugin is installed ...
    On after_plugin_install copy cordova.xml to cordova.tpl.xml
    
    0 讨论(0)
提交回复
热议问题