项目作者: caoxiemeihao

项目描述 :
Electron、vue3、vite2、ant-design-vue2 整合
高级语言: TypeScript
项目地址: git://github.com/caoxiemeihao/electron-vue-vite.git
创建时间: 2020-08-16T04:49:23Z
项目社区:https://github.com/caoxiemeihao/electron-vue-vite

开源协议:

下载


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 Setup

  1. # clone the project
  2. git clone https://github.com/electron-vite/electron-vite-vue.git
  3. # enter the project directory
  4. cd electron-vite-vue
  5. # install dependency
  6. npm install
  7. # develop
  8. npm run dev

Debug

electron-vite-react-debug.gif

Directory

  1. + ├─┬ electron
  2. + ├─┬ main
  3. + └── index.ts entry of Electron-Main
  4. + └─┬ preload
  5. + └── index.ts entry of Preload-Scripts
  6. ├─┬ src
  7. └── main.ts entry of Electron-Renderer
  8. ├── index.html
  9. ├── package.json
  10. └── vite.config.ts

FAQ