Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Configuration Compass/Sass config.rb出现问题_Configuration_Sass_Compass_Urlhelper - Fatal编程技术网

Configuration Compass/Sass config.rb出现问题

Configuration Compass/Sass config.rb出现问题,configuration,sass,compass,urlhelper,Configuration,Sass,Compass,Urlhelper,我正在尝试更新scss config.rb文件中的资产目录。我需要访问指南针混音,例如height:image height($image);要使其工作,我的图像路径必须相对于在config.rb文件中定义的项目的图像目录。然而,我无法让它工作。我使用了指南针url\u助手,但似乎没有任何变化。无论我如何更新config.rb中的资产,在我的scss中声明图像变量时都会返回以下内容……”“没有这样的文件或目录@rb_sysopen-/private/var/www/websites/gc/app

我正在尝试更新scss config.rb文件中的资产目录。我需要访问指南针混音,例如height:image height($image);要使其工作,我的图像路径必须相对于在config.rb文件中定义的项目的图像目录。然而,我无法让它工作。我使用了指南针url\u助手,但似乎没有任何变化。无论我如何更新config.rb中的资产,在我的scss中声明图像变量时都会返回以下内容……”“没有这样的文件或目录@rb_sysopen-/private/var/www/websites/gc/app/sites/all/themes/merge/scss/。/images/。/search-b-image.jpg”这是../images/。。如果它不在我的config.rb中,是否来自?非常感谢您的帮助

config.rb文件是:

http_path = "/"

css_dir = "compiled_css"
sass_dir = "scss"
images_dir = "img"
javascripts_dir = "js"
environment = :development
relative_assets = true
output_style = :expanded

output_style = :compressed

preferred_syntax = :scss

你的config.rb的内容是什么?嘿,谢谢你的回复。我在上面添加了我的config.rb。基于你的config.rb,这个错误不可能发生。
$image
变量包含什么?该变量只是$image:'search-b-image.jpg';您确定您的主题中没有其他config.rb吗?