parcel-cordova-template

A Cordova template that relies on Parcel bundles.

Usage no npm install needed!

<script type="module">
  import parcelCordovaTemplate from 'https://cdn.skypack.dev/parcel-cordova-template';
</script>

README

parcel-cordova-template

Forked from the default Apache Cordova App template: cordova-app-hello-world

Requires Parcel Bundles!

  • Does not contain a www directory
    • relies on Parcel to (re-)build it.
  • Adds hook to config.xml
    • <hook src="hooks/cordova.js" type="before_compile" />
  • Hook hooks/cordova.js modifies www/index.hml
    • replaces <i hidden>cordova.js</i> with <script src="cordova.js"></script>

Usage

$ cordova create hello com.example.hello HelloWorld --template parcel-cordova-template