I want to show a background image from my assets folder. When I use an image tag, the image is shown properly, so the image is well placed, but throws a 404 when I use the `background-image` style. Any idea about what is happening?. I am using Vue 3 with TypeScript and Vite 2.

This does not resolve the URL:

```html
<div style="background-image: url(./assets/img/header.png)"
></div>

```

But this does:

```html
<img src="./assets/img/header.png" alt="Header" />

```