Issue with asset/modules, while loading the image through css, with frontend and backend server being different. #18437
-
|
Before I explain the issue that I have in my case, here is my general info: Now, here is my project description:
Now coming back to problem. Even after that when I run my project I, couldn't load my Image to the project: Now, here is what I found, the problem was never with web-pack or with my path inside my main.css file which has property(background-image) with url for the image. I found that the problem is with the dynamic URL with hash for image that is loaded by the web-pack, since I am using a different PORT ( 8080 ) for my bundle.js, the web-pack loads the file with URL without the port number, which creates a problem. Here, is how when I change or add port number to URL, image seems to be loading. Now here is my question: Is there a way I can give correct port to the web-pack so that it knows the correct URL to reach my asset ? or if not then what should be my approach, given that my back-end would remain on python, since I have specific use for the language. Thanks~ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
What is |
Beta Was this translation helpful? Give feedback.





You can just remove
publicPathand so it will be auto and always relative