Salesforce Platform · Lightning Components

Configure LWC Static Resources

Get images, logos, scripts and other media into static resources so Lightning web components and branding can use them, or point a component at the right asset URL.

10 tasks
Method

How MeshMesh does it

  1. Finds why an image or logo does not show, such as an external logo blocked by the CSP image rules.
  2. Gets the asset from the brand kit, makes the variant needed, uploads it as a static resource and points the component at it.
  3. When static resource URLs do not render, switches the records to Salesforce File download URLs, simplifies the Apex controller and component, and redeploys.
  4. Creates JavaScript static resources, such as a small utility script.
  5. Checks that the asset renders with no console errors.
  6. Often leaves deployment of new static resources to the user.

A related capability is Configure CSP Trusted Sites.

Products

Products and features it works with

Bars show how many of this capability's tasks touched each product.