๐ฅณ Really simple Electron
+ Vue
+ Vite
boilerplate.
๐ฆ Out of the box
๐ฏ Based on the official template-vue-ts, 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
)