无法在基础中编译scss文件

时间:2014-06-12 02:22:10

标签: sass zurb-foundation

我刚刚用sass安装了基础,现在我第一次编译了scss目录,我在输出css中得到了这个错误。

Syntax error: File to import not found or unreadable: foundation/functions.

我在ruby命令提示符下使用了这个命令

sass --watch scss:css

这是我第一次尝试使用SASS基础。 请告诉我我在哪里做错了。 感谢。

.rb文件看起来像这样

    # Require any additional compass plugins here.
add_import_path "bower_components/foundation/scss"

# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "scss"
images_dir = "img"
javascripts_dir = "js"

# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed

# 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

1 个答案:

答案 0 :(得分:1)

您需要告诉您的框架在哪里可以找到Foundation文件。例如,指南针config.rb文件包含行" add_import_path" bower_components / foundation / scss""