Vite

Create a new Electron app with Vite.

As of Electron Forge v7.5.0, Vite support for Electron Forge has been marked as experimental in order to reflect its stage in development and to provide maintainers with the ability to release fixes and improvements rapidly. Future minor releases may contain breaking changes, but migration steps will be listed in release notes. For more context, see the Electron Forge v7.5.0 release notes.

To get you up and running as fast as possible with Vite, we provide a template that makes use of the @electron-forge/plugin-vite module, plus some preset Vite configuration options.

npm init electron-app@latest my-new-app -- --template=vite

Once you've initialized the template, you'll need to run npm start in the generated directory.

See the Vite Plugin documentation for Electron Forge-specific configuration options.

Last updated