chore: update

This commit is contained in:
草鞋没号 2020-09-02 09:19:15 +08:00
parent c39396b821
commit e632d8b9ab

View File

@ -10,6 +10,11 @@ Electron、vue、vite 整合
- npm run dev
- 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)