geelen / jspm-loader-css

50 stars 27 forks source link

Background images not showing up #8

Open pm-debjit-biswas opened 9 years ago

pm-debjit-biswas commented 9 years ago

The background image URLs paths are something like this chrome-devtools://devtools/assets/images/image.png

Do I need to do any specific setting to get this working?

geelen commented 9 years ago

I think that's a straight up bug. I'll take a look tonight and push a fix. Can you post a screenshot of your devtools showing the problem just to help me track it down tonight?

On Tue, 23 Jun 2015 at 13:36 Debjit Biswas notifications@github.com wrote:

The background image URLs paths are something like this chrome-devtools://devtools/assets/images/image.png

Do I need to do any specific setting to get this working?

— Reply to this email directly or view it on GitHub https://github.com/geelen/jspm-loader-css/issues/8.

pm-debjit-biswas commented 9 years ago

Here is the screenshot.

screenshot from 2015-06-23 09 31 13

chenxsan commented 9 years ago

This problem was caused by the blob stylesheets inserted in the head of document, that image url no longer points to the true path. Maybe we can replace the relative image url with absolute one when it's not in BUILD_MODE. But that url() in css could be very complex, users may use relative path like ./img/xx.png or img/xx.png, so the quick fix of this problem is set the USE_STYLE_TAGS to true.

chenxsan commented 9 years ago

I posted my fix here, if anyone interested, please test it.

StephenGilboy commented 8 years ago

I'm not understanding your fix. How do I use this so that my background urls work?