vite-plugin-electron-run
    Preparing search index...

    Interface ElectronViteTargetOptions

    interface ElectronViteTargetOptions {
        define?: Record<string, unknown>;
        external?: ExternalOption;
        input: string;
        minify?: boolean | "esbuild" | "terser";
        outFile?: string;
        plugins?: PluginOption[];
        sourcemap?: boolean | "inline" | "hidden";
        target?: string | false | string[];
        watch?: string[];
    }
    Index
    define?: Record<string, unknown>

    Compile-time replacements scoped to this target.

    external?: ExternalOption

    Additional modules to keep external alongside Electron and Node built-ins.

    input: string

    TypeScript or JavaScript entry file for this Electron target.

    minify?: boolean | "esbuild" | "terser"

    Override Vite minification. Defaults to false.

    outFile?: string

    Exact output file. Defaults to out/main/index.cjs or out/preload/index.cjs.

    plugins?: PluginOption[]

    Vite and Rollup-compatible plugins applied only to this target.

    sourcemap?: boolean | "inline" | "hidden"

    Override source-map generation. Defaults to true in development.

    target?: string | false | string[]

    JavaScript compilation target. Defaults from the installed Electron version.

    watch?: string[]

    Extra files or directories that should trigger a development rebuild.