I\'m fairly new to webpack but having some problems with css-loader or file-loader.
I\'m trying to load a background-image but it doesn\'t work quite right. The bac
It seems like browsers aren't fond of relative paths to background images on the body tag. (see also CSS Background image not loading and css background-image not working properly)
Changing the code slightly seemed to do the trick:
background-image: url(http://localhost:8080/5a09e4424f2ccffb6a33915700f5cb12.jpg). This is hardly ideal.
.foo {
background-image: url('../img/test.jpg');
}
Neither of these solve the real question, but do get you unstuck.