79768862

Date: 2025-09-18 19:46:23
Score: 0.5
Natty:
Report link

I tried multiple approaches but didn’t get them working reliably with Angular + Salesforce static resources. What did work is using a relative path from the SCSS file to the asset. For example:

content: url(../../../vx-grid-resources/assets/icons/checked-box.svg);

This works because:

So far, this has been the only reliable way I’ve found — you need to use the relative path instead of trying ./vx-grid-assets/... or absolute /vx-grid-assets/..., which either don’t compile or don’t resolve correctly at runtime in Salesforce.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Arkan Mansuri