mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
chore: update
This commit is contained in:
parent
c39396b821
commit
e632d8b9ab
@ -10,6 +10,11 @@ Electron、vue、vite 整合
|
|||||||
- npm run dev
|
- npm run dev
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
|
## 踩坑记
|
||||||
|
- import { write } from 'fs' 的这种形式会被 vite 编译成 /@modules/fs?import
|
||||||
|
const { write } = require('fs') 这种形式就能用了 😉
|
||||||
|
- const { ipcRenderer } = require('electron') 同理
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
![](https://raw.githubusercontent.com/caoxiemeihao/electron-vue-vite/master/screenshot/800x600.png)
|
![](https://raw.githubusercontent.com/caoxiemeihao/electron-vue-vite/master/screenshot/800x600.png)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user