0.4.4 • Published 1 year ago

vite-plugin-capacitor v0.4.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Vite Plugin Capacitor

Usage

  • vite.config.js
import ViteCapacitor from 'vite-plugin-capacitor'

export default defineConfig({
    plugins: [
        // ...
        ViteCapacitor({
            pwaElementsVersion: 3,
            silent: false
        })
        // ...
    ]
})
  • capacitor.config.ts
{
  // ...
  server: {
    url: process.env.VITE_CAPACITOR_URL,
    cleartext: Boolean(process.env.VITE_CAPACITOR_URL),
  },
  // ...
}

- package.json

```bash
// serve with npm run capacitor
{
  // ...
  "scripts": {
    // ...
    "capacitor": "vite --host --mode=capacitor",
    // ...
  },
  // ...
}
0.4.4

1 year ago

0.4.3

1 year ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.2

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago