How to install it
1) Install package as dev dependency in your Cordova project
$ npm install cordova-cra-live-reload --save-dev
live-reload-config.js
file
2) Run the following command to create $ cordova-cra-live-reload init
config.xml
file to config.template.xml
3) Rename
config.template.xml
file change content
element
4) Inside the <content src="{{CONTENT_SRC}}" />
How to use it
Start react dev server and run cordova app
$ npm run dev android
Build cordova app
$ npm run build android
Note: Since the library uses Cordova CLI, dev
and build
commands takes same parameters as Cordova run and build commands