用于编译sass文件的绑定器配置
compass正确监视目录时出错,但无法生成输出。我认为这与我的用于编译sass文件的绑定器配置,sass,compass-sass,Sass,Compass Sass,compass正确监视目录时出错,但无法生成输出。我认为这与我的GEMFILE或compass.rbconfig文件有关 ERROR: Guard::Compass failed to achieve its <run_on_change>, exception was: Compass::Error: Nothing to compile. If you're trying to start a new project, you have left off the dire
GEMFILE
或compass.rb
config文件有关
ERROR: Guard::Compass failed to achieve its <run_on_change>, exception was:
Compass::Error: Nothing to compile. If you're trying to start a new project, you have left off the directory argument.
还有我的compass.rb文件
require 'sass'
require 'compass'
# Require any additional compass plugins here.
# Get the directory that this configuration file exists in
dir_src = File.dirname(__FILE__)
# Set this to the root of your project when deployed:
http_path = "/"
project_path = File.join(dir_src, "../", "")
sass_dir = "source/sass"
sass_path = sass_dir
css_dir = "client/css"
#css_path = File.join(dir_src, "client", "css")
#images_dir = "img"
#images_path = File.join(dir_src, "../public", "img")
#javascripts_dir = "js"
#javascripts_path = File.join(dir_src, "../public", "js")
#Environment
#environment = :development
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
output_style = :expanded
# To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false
# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
#preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
debug_info = false
我的文件夹结构与我的顶级目录如下
project/
client/
css
source/
sass/
不知道为什么compass无法编译
编辑:
sass_路径应为绝对路径。在您的配置中,它是相对的 试着注释一下,您已经有了
sass\u dir
如果这没有帮助,请共享您的项目目录结构。更新并添加了我的文件夹结构,我评论说sass_路径定义和我仍然收到相同的错误。通过直接查看我的客户端路径修复了该问题。我从问一个关于meteor和sass的单独问题中找到了答案。您关于删除sass_路径和使用相对路径的回答很有帮助。我会考虑这个问题的答案
project/
client/
css
source/
sass/