项目作者: caoxiemeihao

项目描述 :
Electron、vue3、vite2、webpack5、ant-design-vue2 整合
高级语言: TypeScript
项目地址: git://github.com/caoxiemeihao/electron-vue-vite-webpack.git
创建时间: 2021-02-21T13:16:39Z
项目社区:https://github.com/caoxiemeihao/electron-vue-vite-webpack

开源协议:

下载


electron-vite-boilerplate

🥳 Really simple Electron + Vite boilerplate.

screenshort.png

Features

📦 Out of the box
🚀 Quick Start of vite-plugin-electron
🎯 Based on the official template-vanilla-ts, less invasive

Run Setup

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

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

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.

  1. # vite.config.ts
  2. electron({
  3. - renderer: {}
  4. })

FAQ

🍵 🍰 🍣 🍟