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

    Interface ElectronRunner

    Controls the Electron process managed by createElectronRunner.

    interface ElectronRunner {
        close(): Promise<void>;
        scheduleRestart(output: BundleOutputLocation, reason?: string): void;
    }
    Index
    • Cancel any pending restart, detach process and stdin handlers, and stop Electron. Calling close more than once returns the same promise.

      Returns Promise<void>

    • Schedule a debounced restart using the latest bundle output location. Repeated calls within debounceMs replace the pending restart.

      Parameters

      • output: BundleOutputLocation

        Rollup-compatible output location containing the Electron entry file.

      • Optionalreason: string

        Label included in the restart log. Defaults to "rebuild".

      Returns void