mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-04-26 22:46:54 +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') 同理
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||

|

|
||||||
|
Loading…
x
Reference in New Issue
Block a user