我在指南针 0.12.2 上...我正在尝试使用 config.rb 中的配置参考 http_images_path 但它看起来不像使用此参考...它仍然将图像解析为我的本地目录...我错过了什么吗?
谢谢你的帮助!!
配置文件
http_path = "/"
# Get the directory that this configuration file exists in
dir = File.dirname(__FILE__)
# Compass configurations
sass_path = dir
css_path = File.join(dir, "..", "css")
#images_dir = "../resources/images"
http_images_path = "http://myurl/img/"
output_style = :expanded
environment = :development
css 文件:
@import "compass";
.dir
{
background: image-url("guide.jpg");
}