cordova-multienv-hook

A Cordova hook to manage multiple envioronements easily.

Usage no npm install needed!

<script type="module">
  import cordovaMultienvHook from 'https://cdn.skypack.dev/cordova-multienv-hook';
</script>

README

Work in progress

Cordova Multienv Hook

This hook allows you to change the application name, id and other configuration options depending on enviornement. It is heavily inspired by Devgirl's Three hooks your Cordova/PhoneGap project needs.

Configuration

Replace your app id by APPID and app name by APPNAME in config.xml

Create a multienv.json file in your project root. See examples/multienv.json for sample.

Execution

Export APP_ENV variable with the desired environement before running Cordova commands.