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(),
],
})
PLATFORM=android|ios|web vite <build|preview>
or the prompt.
capacitor(config: CapacitorPluginConfig)
type CapacitorPluginConfig = {
buildOptions?: BuildCommandOptions
runOptions?: RunCommandOptions
}