Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static assets not being loaded properly in production #107

Open
KadenBiel opened this issue Dec 5, 2021 · 1 comment
Open

Static assets not being loaded properly in production #107

KadenBiel opened this issue Dec 5, 2021 · 1 comment

Comments

@KadenBiel
Copy link

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.

@KadenBiel
Copy link
Author

I found a quick work around, that theoretically should work but in practice gives me nothing but issues. why can't this just work the way the docs say it should?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant