我正在尝试使用带有指南针的 SASS 来创建图像精神。但是,我也在使用backbone.js,所以我的网址看起来像:http://localhost/social/#/dashboard
所以当我使用@include arrow-sprite($name);
它时,它会给我一个像这样的网址:http://localhost/social/#/images/sidebar_buttons/arrow-sa2b2afd371.png
哪个 chrome 检查器给了我这个错误:Resource interpreted as Image but transferred with MIME type text/html
如果我从 url 中删除“#”,则图像加载正常。我的 config.rb 看起来像:
http_path = "/social/"
project_path = "C:/wamp/social"
css_dir = "styles/css"
sass_dir = "styles/sass"
images_dir = "images"
javascripts_dir = "js"