Static files in Svelte Kit application can be placed in a public folder, static. Usually, it is wise to place files like
- fave.icon
- images
- log
in the static đź“‚
The file can be accessed directly, without specifying the base path, such as ../static.
<img scr="/brand.svg"/>
- Configure aliases in Svelte Kit
- Passing data among components in Svelte
- Dynamic route in new Svelte Kit
- Static files in Svelte Kit
- Getting current url in Svelte Kit
- Navigate to another route in Svelte Kit (client side)
- Keystroke handling in Svelte
- $lib in Svelte Kit
- How to load data in Svelte Kit routes
- Create Svelte reusable component