Skip to content

default()

ts
function default(prefs?, platform?): VitePlugin

Creates imgit plugin instance for vite.

Parameters

prefs?: VitePrefs

Plugin preferences; will use pre-defined defaults when not assigned.

platform?: Platform

Runtime APIs to use; will attempt to detect automatically when not assigned.

Returns

VitePlugin

Defined in

plugin/vite.ts:37 ↗