File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Vite 的内部和官方插件已经优化,以在提供与更广泛的生态系
1818
1919然而,社区插件的性能是 Vite 无法控制的,这可能会影响开发者的体验。在使用额外的 Vite 插件时,有一些事情可以注意:
2020
21- 1 . 只在特定情况下,大型依赖项应动态导入,以减少Node.js的启动时间 。重构示例:[ vite-plugin-react #212 ] ( https://github.com/vitejs/vite-plugin-react/pull/212 ) 和 [ vite-plugin-pwa #224 ] ( https://github.com/vite-pwa/vite-plugin-pwa/pull/244 ) 。
21+ 1 . 只在特定情况下,大型依赖项应动态导入,以减少 Node.js 的启动时间 。重构示例:[ vite-plugin-react #212 ] ( https://github.com/vitejs/vite-plugin-react/pull/212 ) 和 [ vite-plugin-pwa #224 ] ( https://github.com/vite-pwa/vite-plugin-pwa/pull/244 ) 。
2222
23232 . ` buildStart ` ,` config ` ,和 ` configResolved ` 钩子不应运行过长的时间和进行大量的操作。这些钩子会在开发服务器启动期间等待,这会延迟可以在浏览器中访问站点的时间。
2424
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Vite 提供了一系列推动编写现代代码的特定功能。例如:
1212- 建议使用 [ ` new Worker ` 语法] ( ./features#web-workers ) 来编写 Web Workers,以遵循现代标准。
1313- 在浏览器环境下,不能直接使用 Node.js 模块。
1414
15- 在新增特性时,会遵循这些模式来构建一个具备前瞻性的 API,但请注意,这样的API可能并不总是与其它构建工具兼容 。
15+ 在新增特性时,会遵循这些模式来构建一个具备前瞻性的 API,但请注意,这样的 API 可能并不总是与其它构建工具兼容 。
1616
1717## 旨在高性能的实用解决方案 {#a-pragmatic-approach-to-performance}
1818
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ SSR 特别指支持在 Node.js 中运行相同应用程序的前端框架(例
1414
1515## 示例项目 {#example-projects}
1616
17- Vite 为服务端渲染(SSR)提供了内建支持。[ ` create-vite-extra ` ] ( https://github.com/bluwy/create-vite-extra ) 包含了一些你可以用作参考的SSR设置示例 :
17+ Vite 为服务端渲染(SSR)提供了内建支持。[ ` create-vite-extra ` ] ( https://github.com/bluwy/create-vite-extra ) 包含了一些你可以用作参考的 SSR 设置示例 :
1818
1919- [ Vanilla] ( https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-vanilla )
2020- [ Vue] ( https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-vue )
Original file line number Diff line number Diff line change @@ -315,4 +315,4 @@ Zephyr 与其他云提供商采用不同的方法。它直接与 Vite 构建流
315315
316316# # EdgeOne Pages {#edgeone-pages}
317317
318- 通过遵循这些[说明](https://pages.edgeone.ai/document/vite),使用 [EdgeOne Pages](https://edgeone.ai/products/pages) 部署你的静态站点。
318+ 通过遵循这些 [说明](https://pages.edgeone.ai/document/vite),使用 [EdgeOne Pages](https://edgeone.ai/products/pages) 部署你的静态站点。
You can’t perform that action at this time.
0 commit comments