@bistroo/vite-plugin-capacitor
v3.0.0
Published
Vite plugin for capacitor
Downloads
650
Readme
@bistroo/vite-plugin-capacitor
Install
pnpm add -D @bistroo/vite-plugin-capacitor
// vite.config.ts
import { defineConfig } from 'vite'
import { capacitor } from '@bistroo/vite-plugin-capacitor'
export default defineConfig({
plugins: [
capacitor(),
],
})
Usage
PLATFORM=android|ios|web vite <build|preview>
or the prompt.
API
capacitor(config: CapacitorPluginConfig)
type CapacitorPluginConfig = {
buildOptions?: BuildCommandOptions
runOptions?: RunCommandOptions
}