Skip to content

Commit

Permalink
Update docs/guide/assets.md
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <[email protected]>
  • Loading branch information
helloworld3200 and bluwy authored Oct 17, 2024
1 parent cea4b9b commit 0ba3ac0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/guide/assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ Then you can place the asset in a special `public` directory under your project

The directory defaults to `<root>/public`, but can be configured via the [`publicDir` option](/config/shared-options.md#publicdir).

Note that:

- You should always reference `public` assets using root absolute path - for example, `public/icon.png` should be referenced in source code as `/icon.png`.
Note that you should always reference `public` assets using root absolute path - for example, `public/icon.png` should be referenced in source code as `/icon.png`.

## new URL(url, import.meta.url)

Expand Down

0 comments on commit 0ba3ac0

Please sign in to comment.