docs: refine

This commit is contained in:
LiuBinPeng
2022-04-19 17:15:49 +08:00
parent e2871d54e4
commit 7241220c8e
92 changed files with 10837 additions and 1963 deletions

View File

@@ -398,7 +398,7 @@ Electron 架构和 Chromium 架构类似也是具有1个主进程和多个渲
- ![chrome inspect](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets/2020-04-21-electronChromeInspect.png)
- 重新开启服务 `npm start`,在 chrome inspect 面板的 `Target` 节点中选择需要调试的页面
- 在面板中可以看到主进程执行的 `main.js`。可以加断点进行调试
![chrome inspect](./../assets/2020-04-21-Electron-MainProcessInspect.png)
![chrome inspect](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets/2020-04-21-Electron-MainProcessInspect.png)
方法二:利用 VS Code 调试 Electron 主进程。
@@ -846,6 +846,6 @@ app.listen(33855)
1. App 包体积大小是一个工程治理的一个永恒话题,伴随着 App 每一次版本发布的生命周期App 包大小的意义就不再赘述这里讲讲【App 包体积】这个命题如何与 Electron 结合起来。
App 包体积的治理方案可以查看 [App瘦身之道](./../ Chapter1\ -\ iOS/1.60.md) 这篇文章。目的是通过 Electron 这个技术打造有赞自己的移动潘多拉魔盒囊括必要的各种能力所以【App 包体积】这个命题可以结合 Electron将包大小检测能力作为魔盒的能力之一。
App 包体积的治理方案可以查看 [App瘦身之道](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/ Chapter1\ -\ iOS/1.60.md) 这篇文章。目的是通过 Electron 这个技术打造有赞自己的移动潘多拉魔盒囊括必要的各种能力所以【App 包体积】这个命题可以结合 Electron将包大小检测能力作为魔盒的能力之一。
2. 桌面端技术选型的时候现在多了一些选择Electron、[Tauri](https://github.com/tauri-apps/tauri)、ImGui。其中 Tauri 就是 WebView + Rust 的实现。ImGui 是一个 C/C++ 实现的即时渲染框架。