Awesome
electron-vite-vue
š„³ Really simple Electron
+ Vue
+ Vite
boilerplate.
Features
š¦ 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
Quick Setup
# clone the project
git clone https://github.com/electron-vite/electron-vite-vue.git
# enter the project directory
cd electron-vite-vue
# install dependency
npm install
# develop
npm run dev
Debug
Directory
+ āāā¬ 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
<!--
## Be aware
šØ 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](https://github.com/electron-vite/vite-plugin-electron-renderer#config-presets-opinionated).
```diff
# vite.config.ts
export default {
plugins: [
- // Use Node.js API in the Renderer-process
- renderer({
- nodeIntegration: true,
- }),
],
}
```
-->