diff --git a/blog/announcing-vite2.md b/blog/announcing-vite2.md index 705dedc8..794ce950 100644 --- a/blog/announcing-vite2.md +++ b/blog/announcing-vite2.md @@ -81,4 +81,4 @@ Vite 默认只支持原生支持 ESM 的现代浏览器,但可以通过官方 npm init @vitejs/app ``` -然后,你可以阅读 [指引文档](/guide/) 了解 Vite 提供了哪些开箱即用的功能,也可以在 [GitHub](https://github.com/vitejs/vite) 上查看源码,关注我们的 [Twitter](https://twitter.com/vite_js) 以了解最新的进展,或与其他 Vite 用户在 [Discord](http://chat.vite.dev/) 上一起讨论。 +然后,你可以阅读 [指引文档](/guide/) 了解 Vite 提供了哪些开箱即用的功能,也可以在 [GitHub](https://github.com/vitejs/vite) 上查看源码,关注我们的 [Twitter](https://twitter.com/vite_js) 以了解最新的进展,或与其他 Vite 用户在 [Discord](https://chat.vite.dev/) 上一起讨论。 diff --git a/blog/announcing-vite3.md b/blog/announcing-vite3.md index d8ea30c1..c10855eb 100644 --- a/blog/announcing-vite3.md +++ b/blog/announcing-vite3.md @@ -41,7 +41,7 @@ Quick links: - [Migration Guide](https://v3.vite.dev/guide/migration.html) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md#300-2022-07-13) -If you are new to Vite, we recommend reading the [Why Vite Guide](https://vite.dev/guide/why.html). Then check out [the Getting Started](https://vite.dev/guide/) and [Features guide](https://vite.dev/guide/features) to see what Vite provides out of the box. As usual, contributions are welcome at [GitHub](https://github.com/vitejs/vite). More than [600 collaborators](https://github.com/vitejs/vite/graphs/contributors) have helped improve Vite so far. Follow the updates on [Twitter](https://twitter.com/vite_js), or join discussions with other Vite users on our [Discord chat server](http://chat.vite.dev/). +If you are new to Vite, we recommend reading the [Why Vite Guide](https://vite.dev/guide/why.html). Then check out [the Getting Started](https://vite.dev/guide/) and [Features guide](https://vite.dev/guide/features) to see what Vite provides out of the box. As usual, contributions are welcome at [GitHub](https://github.com/vitejs/vite). More than [600 collaborators](https://github.com/vitejs/vite/graphs/contributors) have helped improve Vite so far. Follow the updates on [Twitter](https://twitter.com/vite_js), or join discussions with other Vite users on our [Discord chat server](https://chat.vite.dev). ## New Documentation diff --git a/blog/announcing-vite4.md b/blog/announcing-vite4.md index 85cb56e6..6c13adf4 100644 --- a/blog/announcing-vite4.md +++ b/blog/announcing-vite4.md @@ -51,7 +51,7 @@ Docs in other languages: - [日本語](https://ja.vite.dev/) - [Español](https://es.vite.dev/) -If you recently started using Vite, we suggest reading the [Why Vite Guide](https://vite.dev/guide/why.html) and checking out [the Getting Started](https://vite.dev/guide/) and [Features guide](https://vite.dev/guide/features). If you want to get involved, contributions are welcome at [GitHub](https://github.com/vitejs/vite). Almost [700 collaborators](https://github.com/vitejs/vite/graphs/contributors) have contributed to Vite. Follow the updates on [Twitter](https://twitter.com/vite_js) and [Mastodon](https://webtoo.ls/@vite), or join collaborate with others on our [Discord community](http://chat.vite.dev/). +If you recently started using Vite, we suggest reading the [Why Vite Guide](https://vite.dev/guide/why.html) and checking out [the Getting Started](https://vite.dev/guide/) and [Features guide](https://vite.dev/guide/features). If you want to get involved, contributions are welcome at [GitHub](https://github.com/vitejs/vite). Almost [700 collaborators](https://github.com/vitejs/vite/graphs/contributors) have contributed to Vite. Follow the updates on [Twitter](https://twitter.com/vite_js) and [Mastodon](https://webtoo.ls/@vite), or collaborate with others on our [Discord community](https://chat.vite.dev). ## Start playing with Vite 4 diff --git a/blog/announcing-vite6.md b/blog/announcing-vite6.md index b4c46ba1..78ba1c3f 100644 --- a/blog/announcing-vite6.md +++ b/blog/announcing-vite6.md @@ -66,7 +66,7 @@ Vite 6 是自 Vite 2 以来最重要的主要版本发布。我们渴望与生 我们要感谢超过 [1000 位 Vite Core 贡献者](https://github.com/vitejs/vite/graphs/contributors) 以及 Vite 插件、集成、工具和翻译的维护者和贡献者,他们帮助我们打造了这个新的主要版本。我们也邀请你参与进来,帮助我们改进整个生态系统的 Vite。了解更多信息,请参阅我们的 [贡献指南](https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md)。 -如果准备开始的话,我们建议可以帮助 [分类问题](https://github.com/vitejs/vite/issues)、[审查 PR](https://github.com/vitejs/vite/pulls)、根据开放问题发送失败的测试 PR,并在[讨论](https://github.com/vitejs/vite/discussions) 和 Vite Land 的 [帮助论坛](https://discord.com/channels/804011606160703521/1019670660856942652) 中帮助他人。如果你想与我们交流,请加入我们的 [Discord 社区](http://chat.vite.dev/) 并在 [#贡献频道](https://discord.com/channels/804011606160703521/804439875226173480) 中打个招呼。 +如果准备开始的话,我们建议可以帮助 [分类问题](https://github.com/vitejs/vite/issues)、[审查 PR](https://github.com/vitejs/vite/pulls)、根据开放问题发送失败的测试 PR,并在[讨论](https://github.com/vitejs/vite/discussions) 和 Vite Land 的 [帮助论坛](https://discord.com/channels/804011606160703521/1019670660856942652) 中帮助他人。如果你想与我们交流,请加入我们的 [Discord 社区](https://chat.vite.dev/) 并在 [#贡献频道](https://discord.com/channels/804011606160703521/804439875226173480) 中打个招呼。 有关 Vite 生态系统和 Vite Core 的最新消息,请关注我们的 [Bluesky](https://bsky.app/profile/vite.dev)、[X](https://twitter.com/vite_js) 或 [Mastodon](https://webtoo.ls/@vite)。 diff --git a/blog/announcing-vite7.md b/blog/announcing-vite7.md index 10bb12f7..9c08b5e9 100644 --- a/blog/announcing-vite7.md +++ b/blog/announcing-vite7.md @@ -51,7 +51,7 @@ _2025年6月24日_ 我们诚邀你加入我们,帮助我们改进 Vite(加入超过 [1.1K 位 Vite Core 贡献者](https://github.com/vitejs/vite/graphs/contributors))、我们的依赖项、插件以及生态系统中的项目。了解更多信息,请参阅我们的[贡献指南](https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md)。 -一个好的入门方法包括:[整理问题](https://github.com/vitejs/vite/issues)、[审阅 PR](https://github.com/vitejs/vite/pulls)、基于未解决问题提交测试 PR,或在 [讨论区](https://github.com/vitejs/vite/discussions) 以及 Vite Land 的 [帮助论坛](https://discord.com/channels/804011606160703521/1019670660856942652) 中为他人提供帮助。如有任何疑问,欢迎加入我们的 [Discord 社区](http://chat.vite.dev/),并在 [#contributing 频道](https://discord.com/channels/804011606160703521/804439875226173480) 中与我们交流。 +一个好的入门方法包括:[整理问题](https://github.com/vitejs/vite/issues)、[审阅 PR](https://github.com/vitejs/vite/pulls)、基于未解决问题提交测试 PR,或在 [讨论区](https://github.com/vitejs/vite/discussions) 以及 Vite Land 的 [帮助论坛](https://discord.com/channels/804011606160703521/1019670660856942652) 中为他人提供帮助。如有任何疑问,欢迎加入我们的 [Discord 社区](https://chat.vite.dev),并在 [#contributing 频道](https://discord.com/channels/804011606160703521/804439875226173480) 中与我们交流。 通过关注我们在 [Bluesky](https://bsky.app/profile/vite.dev)、[X(原 Twitter)](https://twitter.com/vite_js) 或 [Mastodon](https://webtoo.ls/@vite),保持更新并与更多基于 Vite 构建的开发者建立联系。 diff --git a/guide/features.md b/guide/features.md index d101b64f..fda2439f 100644 --- a/guide/features.md +++ b/guide/features.md @@ -12,7 +12,7 @@ import { someMethod } from 'my-dep' 上面的代码会在浏览器中抛出一个错误。Vite 将会检测到所有被加载的源文件中的此类裸模块导入,并执行以下操作: -1. [预构建](./dep-pre-bundling) 它们可以提高页面加载速度,并将 CommonJS / UMD 转换为 ESM 格式。预构建这一步由 [esbuild](http://esbuild.github.io/) 执行,这使得 Vite 的冷启动时间比任何基于 JavaScript 的打包器都要快得多。 +1. [预构建](./dep-pre-bundling) 它们可以提高页面加载速度,并将 CommonJS / UMD 转换为 ESM 格式。预构建这一步由 [esbuild](https://esbuild.github.io/) 执行,这使得 Vite 的冷启动时间比任何基于 JavaScript 的打包器都要快得多。 2. 重写导入为合法的 URL,例如 `/node_modules/.vite/deps/my-dep.js?v=f3sf2ebd` 以便浏览器能够正确导入它们。 diff --git a/guide/static-deploy.md b/guide/static-deploy.md index 685fe2e4..fd34d224 100644 --- a/guide/static-deploy.md +++ b/guide/static-deploy.md @@ -250,7 +250,7 @@ $ npx wrangler pages deploy dist 3. 运行 `surge dist` 命令部署到 surge。 -你也可以通过添加 `surge dist yourdomain.com` 部署到一个 [自定义域名](http://surge.sh/help/adding-a-custom-domain)。 +你也可以通过添加 `surge dist yourdomain.com` 部署到一个 [自定义域名](https://surge.sh/help/adding-a-custom-domain)。 ## Azure 的静态网站应用 {#azure-static-web-apps} @@ -322,3 +322,7 @@ $ npx wrangler pages deploy dist Zephyr 与其他云提供商采用不同的方法。它直接与 Vite 构建流程集成,因此每次你构建或运行应用程序的开发服务器时,它都会自动部署到 Zephyr Cloud。 请按照 [Vite 部署指南](https://docs.zephyr-cloud.io/bundlers/vite) 中的步骤开始使用。 + +## EdgeOne Pages {#edgeone-pages} + +通过遵循这些[说明](https://pages.edgeone.ai/document/vite),使用 [EdgeOne Pages](https://edgeone.ai/products/pages) 部署你的静态站点。