π₯³ Really simple Electron
+ Vue
+ Vite
boilerplate.
π¦ Out of the box
π― Based on the official vue-ts template, less invasive
π± Extensible, really simple directory structure
πͺ Support using Node.js API in Electron-Renderer
π© Support C/C++ native addons
π₯ It's easy to implement multiple windows
npm create electron-vite
+ βββ¬ electron
+ β βββ¬ main
+ β β βββ index.ts entry of Electron-Main
+ β βββ¬ preload
+ β βββ index.ts entry of Preload-Scripts
βββ¬ src
β βββ main.ts entry of Electron-Renderer
βββ index.html
βββ package.json
βββ vite.config.ts
By default, this template integrates Node.js in the Renderer process. If you don't need it, you just remove the option below. Because it will modify the default config of Vite.
# vite.config.ts
electron({
- renderer: {}
})
- dependencies vs devDependencies
- Using C/C++ native addons in Electron-Renderer
- Node.js ESM packages (e.g.
execa
node-fetch
)