Vite + TypeScript

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

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

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