0

I am trying to use SASS with compass to create image spirits. However, I am also using backbone.js, so my url's look like: http://localhost/social/#/dashboard

So when I use @include arrow-sprite($name); it gives me a url like: http://localhost/social/#/images/sidebar_buttons/arrow-sa2b2afd371.png

Which chrome inspector gives me this error: Resource interpreted as Image but transferred with MIME type text/html

If I go and remove the "#" from the url, the image loads fine. My config.rb looks like:

http_path = "/social/"
project_path = "C:/wamp/social"
css_dir = "styles/css"
sass_dir = "styles/sass"
images_dir = "images"
javascripts_dir = "js"
3
  • 2
    Try enabling relative assets in your config.rb: relative_assets = true
    – cimmanon
    Apr 8, 2013 at 16:53
  • Or switch to absolute URLs or use the path from the root.
    – Loamhoof
    Apr 8, 2013 at 17:17
  • @cimmanon add your answer so I can give you credit! :) Apr 9, 2013 at 13:21

1 Answer 1

0

Enable relative assets in your config.rb:

relative_assets = true

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.