Skip to content

Commit

Permalink
docs: add client types hint in static assets guide (#11305)
Browse files Browse the repository at this point in the history
* docs: add client types hint in static assets guide

* chore: tweak

Co-authored-by: 翠 / green <green@sapphi.red>
  • Loading branch information
psoutertale and sapphi-red committed Dec 11, 2022
1 parent 85fefad commit 388adf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/assets.md
Expand Up @@ -28,6 +28,8 @@ The behavior is similar to webpack's `file-loader`. The difference is that the i

- Git LFS placeholders are automatically excluded from inlining because they do not contain the content of the file they represent. To get inlining, make sure to download the file contents via Git LFS before building.

- TypeScript, by default, does not recognize static asset imports as valid modules. To fix this, include [`vite/client`](./features#client-types).

### Explicit URL Imports

Assets that are not included in the internal list or in `assetsInclude`, can be explicitly imported as a URL using the `?url` suffix. This is useful, for example, to import [Houdini Paint Worklets](https://houdini.how/usage).
Expand Down

0 comments on commit 388adf5

Please sign in to comment.