Skip to content

Commit 489391c

Browse files
docs(zh): update a link and sync translations (#3624)
sync with 5323892
1 parent 75bed4f commit 489391c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: docs/zh/guide/asset-handling.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 引用静态资源 {#referencing-static-assets}
44

5-
所有的 Markdown 文件都会被编译成 Vue 组件,并由 [Vite](https://vitejs.dev/guide/assets.html) 处理。可以**并且应该**使用相对路径来引用资源:
5+
所有的 Markdown 文件都会被编译成 Vue 组件,并由 [Vite](https://cn.vitejs.dev/guide/assets.html) 处理。可以**并且应该**使用相对路径来引用资源:
66

77
```md
88
![An image](./image.png)
@@ -12,6 +12,10 @@
1212

1313
常见的图像,媒体和字体文件会被自动检测并视作资源。
1414

15+
::: tip 通过链接引用的文件不会视作资源
16+
在 Markdown 内,通过链接引用的 PDF 或者其他文档不会被自动视作资源。要使这些文件可用,你必须手动将其放在项目的 [`public`](#the-public-directory) 目录内。
17+
:::
18+
1519
所有引用的资源,包括那些使用绝对路径的,都会在生产构建过程中被复制到输出目录,并使用哈希文件名。从未使用过的资源将不会被复制。小于 4kb 的图像资源将会采用 base64 内联——这可以通过 [`vite`](../reference/site-config#vite) 配置选项进行配置。
1620

1721
所有**静态**路径引用,包括绝对路径,都应基于你的工作目录的结构。

0 commit comments

Comments
 (0)