I am currently using Next.js.
My styles look like this:
.img {
background-image: url(path/to/my/svg/file.svg#icon);
}
However, when I run npm run dev
,
the styles for my element with the class name "img" change to:
.img {
background-image: url(path/to/my/svg/file.jsbf730sh.svg);
}
I have lost the #icon id in the process.
I suspect that this issue is caused by the scss compiler, but I have been unable to find a solution.