How do you access (referencing) CSS static resource file in Lightning Web Component (LwC) html? I have included the css under the "staticresources" folder and its uploaded in the salesforce static resource section.
I am referring this help doc but don't see how to reference css –
https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.create_resources
Best Answer
You will most likely need to utilize
loadStyle(self, fileUrl): Promise
fromlightning/platformResourceLoader
. You can find a sample on Use Third-Party JavaScript Libraries