Using Astro and Sass I would like to use an asset image in a scss file.
In the scss file I have:
.map {
background-image: url('src/assets/map.jpg');
background-repeat:no-repeat;
background-position: center center;
}
In the index.astro I import it as
---
import 'src/styles/global.scss';
---
When I use the astro dev
I shows the image just fine but when I build it the image isn’t compiled into the final dist.
Is there a way to import the image into the scss?