7.4.0 • Published 1 month ago

@electron-forge/plugin-vite v7.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

plugin-vite

This plugin makes it easy to set up standard vite tooling to compile both your main process code and your renderer process code, with built-in support for Hot Module Replacement (HMR) in the renderer process and support for multiple renderers.

// forge.config.js

module.exports = {
  plugins: [
    {
      name: '@electron-forge/plugin-vite',
      config: {
        // `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.
        // If you are familiar with Vite configuration, it will look really familiar.
        build: [
          {
            // `entry` is just an alias for `build.lib.entry` in the corresponding file of `config`.
            entry: 'src/main.js',
            config: 'vite.main.config.mjs'
          },
          {
            entry: 'src/preload.js',
            config: 'vite.preload.config.mjs'
          }
        ],
        renderer: [
          {
            name: 'main_window',
            config: 'vite.renderer.config.mjs'
          }
        ]
      }
    }
  ]
};
7.4.0

1 month ago

7.3.1

2 months ago

7.3.0

3 months ago

6.3.0

9 months ago

6.4.1

9 months ago

6.4.0

9 months ago

6.4.2

8 months ago

7.0.0

6 months ago

7.2.0

5 months ago

7.1.0

6 months ago

6.2.1

11 months ago

6.2.0

11 months ago

6.1.1

1 year ago

6.1.0

1 year ago