我安裝了基礎,當我編輯並保存app.scss文件時,它會創建一個「app.css」和一個「config.rb」文件在我的項目的sass文件夾中。當我打開「app.css」文件,我得到這個語法錯誤:導入未找到或無法讀取的文件:foundation/common/ratios
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文件。指南針仍然符合「樣式表」文件夾中的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
你的config.rb是什麼樣的? – cimmanon 2013-02-28 03:00:09
我將config.rb內容添加到原始問題 – 2013-02-28 16:51:24