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

    Function default

    • Rollup plugin that (re)launches Electron on every bundle write and shuts the process down when the watcher closes.

      Inert outside watch mode: a one-shot rollup -c must not spawn an app and hang the build.

      Parameters

      Returns Plugin

      A Rollup plugin that owns the Electron runner during watch mode.

      import electronRun from "vite-plugin-electron-run/rollup-plugin";

      export default {
      input: "src/main.ts",
      output: { dir: "dist", format: "cjs" },
      plugins: [electronRun({ entry: "main.js" })],
      };