Go to file
2022-06-25 08:46:25 +08:00
.github misc: fix ci & add doc links 2022-04-20 00:18:29 +08:00
.vscode chore: update vscode recommendations 2022-05-04 16:48:13 +08:00
electron fix(🐞): load path 2022-06-16 19:51:59 +08:00
public add electron-vite-vue.gif, node.png 2022-06-14 20:29:53 +08:00
src fix: file name 2022-06-15 22:03:30 +08:00
.gitignore update 2022-06-14 21:14:21 +08:00
CHANGELOG.md log: adjustment order 2022-06-17 08:51:59 +08:00
electron-builder.json5 json -> json5 2022-04-12 09:20:42 +08:00
index.html template-vue-ts 2022-06-13 22:10:18 +08:00
LICENSE chore: license 2021-11-04 14:26:18 +08:00
package.json fix(🐞): load path 2022-06-16 19:51:59 +08:00
README.md docs: remove 简体中文 2022-06-22 08:59:41 +08:00
tsconfig.json template-vue-ts 2022-06-13 22:10:18 +08:00
tsconfig.node.json chore: add vite.config.electron.ts to include 2022-06-25 08:46:25 +08:00
types.d.ts rename 2022-02-08 11:13:34 +08:00
vite.config.electron.ts vite.config.electron.ts 2022-06-25 08:46:01 +08:00
vite.config.ts refactor: directory structure 2022-06-16 19:23:43 +08:00

electron-vite-vue

🥳 Really simple Electron + Vue + Vite boilerplate.

awesome-vite Netlify Status GitHub license GitHub stars GitHub forks

Features

📦 Out of the box
🎯 Based on vue-ts template, less invasive
🌱 Extensible, really simple directory structure
💪 Support using Node.js API in Renderer-process
🔩 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 Electron-preload
  ├─┬ src
  │ └── main.ts       entry of Electron-renderer
  ├── index.html
  ├── package.json
  └── vite.config.ts

Examples

Used in Main-process 👉 electron-vite-boilerplate

Used in Renderer-process 👉 electron-vite-boilerplate/tree/nodeIntegration

List the modules you may use as far as possible

ES Modules
Native Addons(C/C++)