Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 576 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 576 Bytes

@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
}