forcedotcom / lwc-dev-server-feedback

LWC Local Development
BSD 3-Clause "New" or "Revised" License
45 stars 10 forks source link

Static Resource containing images is not loading locally only on the Server #4

Closed AllanOricil closed 4 years ago

AllanOricil commented 4 years ago

I have a series of icons stored as a public static resource. I zipped the files and upload it to Salesforce. Then I retrieved it to my sfdx project folder using the sfdx pull command to use it locally. The link is generated correctly but the image does not render. But when I push my code to the scratch org I can see the images being rendered. Follow bellow an image showing the same lwc in the org and locally. You will see that the image loads in the server but not locally.

Screenshots image

image

**Desktop

AllanOricil commented 4 years ago

I found the issue. Whenever you pull a static resource from an org, stop and restart the local server. It does not have hotreload on it for staticresources. It would be a good idea to implement it.

KelvinHuangDZ commented 4 years ago

I have similar issue, my Static Resource has a global css. Whenever i make changes to the css file, it's not reflected on the page.

stale[bot] commented 4 years ago

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

git2gus[bot] commented 4 years ago

This issue has been linked to a new work item: W-7299191

mysticflute commented 4 years ago

dupe of #22