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

    Function createElectronRunner

    • Create a standalone Electron process runner.

      Call ElectronRunner.scheduleRestart after a successful build. The runner resolves the configured entry file from the supplied bundle output, stops any process it previously launched, and starts Electron again. Call ElectronRunner.close when the surrounding watcher shuts down.

      Parameters

      Returns ElectronRunner

      A runner that can be notified of builds and closed during shutdown.

      const runner = createElectronRunner({ entry: "main.js" });
      runner.scheduleRestart({ dir: "dist" });
      await runner.close();