Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Not looking for bg images in the images folder #63

Closed
elefontpress opened this Issue · 2 comments

2 participants

@elefontpress

Seems like Scout is looking for my bg images in the Output folder, even though I specified an images folder.

So:

Output:
/Users/mgriffin/Sites/rwd-grid-example/public/stylesheets

Images:
/Users/mgriffin/Sites/rwd-grid-example/static/images

But when I set, say: background: url('object.jpg');

It looks for the image at:

file://localhost/Users/mgriffin/Sites/rwd-grid-example/public/stylesheets/object.png

If I get all crazy and try: background: url('static/images/object.jpg');

... and then move the static folder inside the stylesheets folder, then it looks correctly (sort of) at:

file://localhost/Users/mgriffin/Sites/rwd-grid-example/public/stylesheets/static/images/object.jpg

And the image shows up in the background as hoped for.

But that's cray. Who wants the images folder in the stylesheets folder?

:)

MG

@zdennis
Owner

@elefontpress,

Use the image-url helper (provided by Compass) so Compass/Sass can generate the image path I think you're expecting:

 background: image-url('object.jpg');

Let me know that resolves the issue! Thanks!

@elefontpress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.