No description
  • TypeScript 59.1%
  • Vue 27.9%
  • CSS 9.9%
  • HTML 3.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-11-06 10:40:21 +01:00
.github first commit 2023-04-09 21:44:54 +02:00
.vscode first commit 2023-04-09 21:44:54 +02:00
electron first commit 2023-04-09 21:44:54 +02:00
public first commit 2023-04-09 21:44:54 +02:00
src first commit 2023-04-09 21:44:54 +02:00
.gitignore first commit 2023-04-09 21:44:54 +02:00
CHANGELOG.md first commit 2023-04-09 21:44:54 +02:00
electron-builder.json5 first commit 2023-04-09 21:44:54 +02:00
index.html first commit 2023-04-09 21:44:54 +02:00
LICENSE first commit 2023-04-09 21:44:54 +02:00
package.json Merge pull request #10 from Angelillo15/dependabot/npm_and_yarn/vite-plugin-electron-0.14.1 2023-11-06 10:40:21 +01:00
README.md first commit 2023-04-09 21:44:54 +02:00
tsconfig.json first commit 2023-04-09 21:44:54 +02:00
tsconfig.node.json first commit 2023-04-09 21:44:54 +02:00
vite.config.ts first commit 2023-04-09 21:44:54 +02:00

electron-vite-vue

🥳 Really simple Electron + Vue + Vite boilerplate.

GitHub Build GitHub Discord

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 Start

npm create electron-vite

electron-vite-vue.gif

Debug

electron-vite-react-debug.gif

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.

# vite.config.ts

export default {
  plugins: [
-   // Use Node.js API in the Renderer-process
-   renderer({
-     nodeIntegration: true,
-   }),
  ],
}

FAQ