Skip to content

Commit 81980cb

Browse files
xubeiyanRSS1102
andauthored
i18n(zh-cn): fix some translation at docs/zh-cn/start/frontend/vite.mdx (#2851)
Co-authored-by: 阿菜 Cai <[email protected]>
1 parent 0960ca6 commit 81980cb

File tree

1 file changed

+2
-2
lines changed
  • src/content/docs/zh-cn/start/frontend

1 file changed

+2
-2
lines changed

src/content/docs/zh-cn/start/frontend/vite.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Vite 是为提供更快速,更简洁的现代 Web 项目开发体验而诞生
9292
import { defineConfig } from 'vite';
9393

9494
export default defineConfig({
95-
// 阻止 Vite 清除 Rust 抛出的错误
95+
// 防止 Vite 清除 Rust 显示的错误
9696
clearScreen: false,
9797
server: {
9898
// Tauri 工作于固定端口,如果端口不可用则报错
@@ -101,7 +101,7 @@ Vite 是为提供更快速,更简洁的现代 Web 项目开发体验而诞生
101101
host: host || false,
102102
port: 5173,
103103
},
104-
// 为了使用命令行接口(CLI)为当前构建目标配置的 Tauri 环境变量
104+
// 添加有关当前构建目标的额外前缀,使这些 CLI 设置的 Tauri 环境变量可以在客户端代码中访问
105105
envPrefix: ['VITE_', 'TAURI_ENV_*'],
106106
build: {
107107
// Tauri 在 Windows 上使用 Chromium,在 macOS 和 Linux 上使用 WebKit

0 commit comments

Comments
 (0)