Create a new Electron app with Vite.
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.