docs: update
This commit is contained in:
1 parent
939acf638b
commit
545e4159f5
2 files changed
+44
-13
No files matched your search
+3
-5
@@ -9,13 +9,11 @@
|
||||
|
||||
## 概述
|
||||
|
||||
- 主进程(main-process)、渲染进程(renderer-process)、预加载脚本(preload-script) 全部在 `configs/xxx.ts` 中配置 -- 全量级的 `Vite` 编译还是相当快的
|
||||
- 十分简单的 Vite, React, Electron 整合模板
|
||||
|
||||
- `scripts/build.mjs` 只是调用了 `Vite` 的 API 并使用 `configs/xxx.ts` 配置文件进行构建
|
||||
- 只包含最基本的依赖
|
||||
|
||||
- `scripts/watch.mjs` 与 `build.mjs` 区别是 主进程(main-process)、预加载脚本(preload-script) 配置了 `watch` 选项;渲染进程则是使用了 `require('vite').createServer`
|
||||
|
||||
- 项目整体趋于 配置化 而不是大量的脚本让人眼花缭乱 -- **上手简单**
|
||||
- 扩展十分灵活
|
||||
|
||||
## 运行
|
||||
|
||||
|
||||
Reference in new issue
Block a user