Skip to content

Commit

Permalink
Update assets.md
Browse files Browse the repository at this point in the history
  • Loading branch information
helloworld3200 authored Oct 4, 2024
1 parent f721677 commit e5639f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ The directory defaults to `<root>/public`, but can be configured via the [`publi
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`.
- Assets in `public` cannot be imported from JavaScript.
- Assets in `public` cannot be imported from JavaScript, but you can use the `fetch()` function to retrieve them.

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

Expand Down

0 comments on commit e5639f8

Please sign in to comment.