vite-plugin-fathom
Version:
Vite plugin for adding fathom
13 lines (12 loc) • 388 B
TypeScript
import { Plugin } from 'vite';
export interface fathomOptions {
forceEU?: boolean;
spa?: boolean | "auto" | "hash" | "history";
honorDNT?: boolean;
autoTrack?: boolean;
ignoreCanonical?: boolean;
}
/**
* Inject the fathom script at the end of your head
*/
export default function viteFathomPlugin(fathomSiteID?: string | undefined, options?: fathomOptions): Plugin;