Go to file
2021-03-30 09:57:22 +08:00
screenshot chore: UPDRTE 2021-02-19 14:26:29 +08:00
script chore: remove "rollup-plugin-copy" 2021-02-18 20:06:23 +08:00
src fix: failed load preload.js. 2021-02-18 21:49:53 +08:00
typings chore: upate 2020-08-31 09:50:57 +08:00
.env npm run dev:all :) 2020-08-16 20:42:52 +08:00
.gitignore chore: UPDATE 2021-02-18 21:38:06 +08:00
.yarnrc npm run dev:all :) 2020-08-16 20:42:52 +08:00
blog.md blog 2020-08-17 17:43:07 +08:00
note.md chore: UPDATE 2021-03-30 09:57:22 +08:00
package.json fix: failed load preload.js. 2021-02-18 21:49:53 +08:00
README.md chore: UPDATE 2021-03-30 09:57:22 +08:00
tsconfig.json chore: UPDATE 2021-02-18 18:07:13 +08:00
vite.config.ts fix: 打包 BUG 2021-02-18 17:29:45 +08:00
yarn.lock chore: remove "rollup-plugin-copy" 2021-02-18 20:06:23 +08:00

electron-vue-vite

Electron + Vue3 + Vite2 integration

How and Why

  • Vite is the scaffold of the future

Command

  • npm run dev
  • npm run build

Note

  • Using Nodejs Electron API in vite and using require to import
    // import { readFile } from 'fs'
    // import { ipcRenderer } from 'electron'
    
    const { readFile } = require('fs')
    const { ipcRenderer } = require('electron')