Skip to content

Commit 5323892

Browse files
authored
docs: linked files not treated as assets (#3615)
close #3535
1 parent 28989df commit 5323892

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/guide/asset-handling.md

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ You can reference static assets in your markdown files, your `*.vue` components
1212

1313
Common image, media, and font filetypes are detected and included as assets automatically.
1414

15+
::: tip Linked files are not treated as assets
16+
PDFs or other documents referenced by links within markdown files are not automatically treated as assets. To make linked files accessible, you must manually place them within the [`public`](#the-public-directory) directory of your project.
17+
:::
18+
1519
All referenced assets, including those using absolute paths, will be copied to the output directory with a hashed file name in the production build. Never-referenced assets will not be copied. Image assets smaller than 4kb will be base64 inlined - this can be configured via the [`vite`](../reference/site-config#vite) config option.
1620

1721
All **static** path references, including absolute paths, should be based on your working directory structure.

0 commit comments

Comments
 (0)