Template Project: Vite + Electron + Typescript + React
Editor: Visual Studio Code
NOTE
Unfortunately, sometimes the sourcemap is not generated correctly. This appears to be a bug in Vite. The debugger in Viausl Studio Code also does not work because of this bug.
Setup
$ yarn install
Build
$ yarn run build
Dist files:
dist/src
: Vite generated (Electron renderer process entry point).dist/electron
: vite-plugin-electron (via Vite) generated (Electron main process entry point and preload script).dist/release
:electron-builder
generated (release it).
Development
Launch configuration Debug Electron
(Visual Studio Code debug configuration).
Or run task:
$ yarn run dev
Test
$ yarn run test
Format
$ yarn run format
Lint
$ yarn run lint