Access Background Image From SCSS File
I’m trying to access an image from static/images
from an SCSS File.
a::before {
content: "";
position: absolute;
top: .25em;
left: 0;
width: .5rem;
height: .5rem;
background: url(/images/marker.svg) no-repeat 50%;
}
I have the image in the static/images
file. When baseURL is root and when testing using the huge server it works fine. But when I publish my site its baseURL becomes /something
. It’s not at the root. That path changes so i need it to be generic. Is there a way to have that URL in an SCSS file be relative to baseURL like other urls in layout files?