I am trying to use static resource image in CSS using the below code -
JS:
//Importing image from static resource
import My_Resource from '@salesforce/resourceUrl/popUpImage';
//Defining this inside export classs
popUpImage = My_Resource;
CSS:
.bgImage{
background-image: url({!URLFOR(popUpImage)});
}
Please help :(
URLFOR
is not valid in LWC context