how to use local static images in svelte

JavaScript
// put them in the public folder
// access like
// public/assets/bg.png

<img src="assets/bg.png" />
Source

Also in JavaScript: