tj / frontend-boilerplate

webpack-react-redux-babel-autoprefixer-hmr-postcss-css-modules-rucksack-boilerplate (unmaintained, I don't use it anymore)
2.93k stars 268 forks source link

Background image issues #82

Closed iduuck closed 8 years ago

iduuck commented 8 years ago

I found multiple threads about this topic, but nothing really solved my problem: I have used the frontend-boilerplate for a new project I am working on and I am stuck with simple background-image's in my CSS files. I use the loader that was shipped with the boilerplate, but the background-image is not applied to the element, because of the blobs webpack is writing to the DOM.

How to fix this?

iduuck commented 8 years ago

Wow, after almost 2 hours of wrestling with this, I found out that this is working if I am providing an publicPath. The value should be http://localhost:3000.