Skip to content

Commit 54abafc

Browse files
authored
docs(assets): update vite-plugin-svelte issue status (#2280)
1 parent 451939d commit 54abafc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

documentation/faq/45-assets.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ You can have Vite process your assets by importing them as shown below:
1212
<img src="{imageSrc}" />
1313
```
1414

15-
There is an [open request in `vite-plugin-svelte` to help do this automatically](https://github.com/sveltejs/vite-plugin-svelte/issues/114).
15+
If you prefer to directly import in the markup, try [svelte-preprocess-import-assets](https://github.com/bluwy/svelte-preprocess-import-assets) and you can write this instead:
16+
17+
```html
18+
<img src="$lib/assets/image.png" />
19+
```

0 commit comments

Comments
 (0)