我安装了基础,当我编辑并保存app.scss文件时,它会在我项目的sass文件夹中创建一个"app.css"和一个"config.rb"文件.当我打开"app.css"文件时,我得到了这个
Syntax error: File to import not found or unreadable: foundation/common/ratios.
Run Code Online (Sandbox Code Playgroud)
然后根据我得到这个:
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
Run Code Online (Sandbox Code Playgroud)
然后是我的宝石的一堆路径.
在我想知道是否有人可以解释为什么会发生这种情况之前,它从未在我的sass文件夹中创建app.css和config.rb文件.指南针仍然符合"样式表"文件夹中的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 …
Run Code Online (Sandbox Code Playgroud)