🧩 Plasmo Developers�PD
🧩 Plasmo Developers3y ago
7 replies
Avi

How to load SVG in CSS

In the docs I found https://docs.plasmo.com/framework/import
So I did
.card-stats {
  background-image: url("raw:~assets/Spring.svg");
}

but it resolves to
.card-stats {
  background-image: url("Spring.aa316ce4.svg");
}

rather than
.card-stats {
  background-image: url("chrome-extension://ID/Spring.aa316ce4.svg");
}
Plasmo Docs
How imports work with the Plasmo Framework.
Import Resolution – Plasmo
Was this page helpful?