electron-userland / electron-userland/electron-webpack-quick-start
Static assets not being loaded properly in production
- Dominant language
- JavaScript
- Stars
- 746
- Forks
- 245
- PR merge metrics
- No merged PRs in 30d
Description
When building my app, I noticed that I could never get my image to load after production, but while still in development the image would load just fine. I opened devTools and did some digging only to find out that whenever the app was loading in static files it used the wrong path. It would try and grab the image from `/myProgram/resources/myimg.png` when the actual path was `/myProgram/resources/static/myimg.png`. How can I rectify this? I'd like to possibly find a way to tell webpack what path to use when loading the image, but I haven't had much luck in finding one.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.