I am currently dealing with a CSS issue in my project. Here is the code snippet from my stylesheet:
.Img{
background: url('../assets/Trump.png');
}
Now, let's take a look at the corresponding HTML code:
<div class="Img">
However, when I try to modify it like this:
<div class="Img" style="background: url('../assets/Trump.png');">
The image fails to load and an error occurs:
>GET http://localhost:8080/assets/Trump.png 404 (Not Found)
My current setup involves using vue.js 2.0 and webpack for this project.