Go to file
2021-11-02 10:33:58 +08:00
blog chore: UPDATE wx qrcode 2021-11-01 10:12:01 +08:00
screenshot chore(screenshot): add better-log.pn 2021-11-02 10:33:10 +08:00
script feat: support preload script hot reload 2021-10-25 20:45:37 +08:00
src feat: support preload script hot reload 2021-10-25 20:45:37 +08:00
typings communication declare 2021-09-09 10:17:30 +08:00
.gitignore chore: UPDATE 2021-05-30 07:50:29 +08:00
.npmrc chore: remove taobao electron_mirror 2021-07-04 18:00:36 +08:00
note.md chore: UPDATE 2021-05-30 08:24:29 +08:00
package.json refactor: package.json.env alternative .env 2021-10-25 20:32:16 +08:00
README.md chore: UPDATE 2021-11-02 10:33:58 +08:00
tsconfig.json chore: UPDATE 2021-09-09 09:36:06 +08:00
vite.config.ts refactor: package.json.env alternative .env 2021-10-25 20:32:16 +08:00
yarn.lock chore(deps): add ws, @types/ws 2021-10-25 20:18:36 +08:00

electron-vue-vite

🥳 Simple boilerplate.

Electron + Vue3 + Vite2 integration

How and Why

  • Vite is the scaffold of the future

Feature

  • HRM

    • Main process hot restart
    • Preload script hot reload
    • Renderer process hot module replacement -- power by Vite
  • Beautiful log

    • [R] means Renderer process
    • [P] means Preload script
    • [M] means Main process

Command

  • npm run dev
  • npm run build

Communication

  • All NodeJs、Electron API invoke passed Preload script

Branchs

  • ant-design-vue
    • Use tsx
    • Integration ant-design-vue
  • element-plus 登录窗口、element-ui 这个可能很适合你 🚀
    • With multiple BrowserWindow
    • Integration element-plus

微信讨论


License

MIT License