This repository has been archived by the owner on Oct 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 467
Local Development Plugin
Nikolay Demyankov edited this page Apr 25, 2016
·
1 revision
When you develop your app locally - the general process looks like that:
- Do some changes in the web project.
- Execute
cordova run
to build and launch the app. - Wait for a while and see the result.
To see the results for even a smallest change you need to rebuild and restart the app. And that can take a while. And it is kind of boring.
In order to speed this up - you can use Hot Code Push Local Development Add-on. Setup is pretty simple:
- Add the plugin to the project.
- Start local server by executing
cordova-hcp server
. - Add
<local-development enabled="true" />
to the<chcp />
block of your project'sconfig.xml
file. - Launch the app.
From that moment, all the changes in the web project will be detected by the plugin, and immediately loaded into the app without the need to restart it.
You will have to restart the app only if you add some new plugin to the project.
Important: you should use this add-on for development purpose only. Consider deleting it before building the release version by executing cordova plugin remove cordova-hot-code-push-local-dev-addon
.
- Description
- Supported platforms
- App Store FAQ
- Usage Limitations
- Installation
- Quick start guides
- How plugin works
- config.xml preferences
- Plugin configuration files
- JavaScript module
- Additional utils
- Migrating from previous versions
- Contributors
- Issue creation guide