我已经安装了基础,当我编辑和保存 app.scss 文件时,它会在我的项目的 sass 文件夹中创建一个“app.css”和一个“config.rb”文件。当我打开那个“app.css”文件时,我得到了这个
Syntax error: File to import not found or unreadable: foundation/common/ratios.
然后我得到这个:
File to import not found or unreadable: foundation/common/ratios.
Load paths:
/Applications/MAMP/htdocs/WebApp02/sass
/Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets
Compass::SpriteImporter
on line 1 of /Applications/MAMP/htdocs/WebApp02/sass/_settings.scss
from line 2 of /Applications/MAMP/htdocs/WebApp02/sass/app.scss
然后是一堆通往我的宝石的路径。
在我想知道是否有人能解释为什么会发生之前,它从未在我的 sass 文件夹中创建 app.css 和 config.rb 文件。Compass 仍然符合“样式表”文件夹中的 app.css,但我想修复它以防止将来发生任何错误。
config.rb 文件看起来像这样
require 'zurb-foundation'
Require any additional compass plugins here.
Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
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