Sep*_*oni 3 sass zurb-foundation
我在终端安装了这样的基金会:
[sudo] gem install zurb-foundation
Run Code Online (Sandbox Code Playgroud)
然后我创建了一个像这样的新项目:
cd path/to/where-you-want-your-project
compass create <project-name> -r zurb-foundation --using foundation
Run Code Online (Sandbox Code Playgroud)
(完全像基金会的文档)
现在因为我很懒,compass watch path/to/project每次我在项目之间切换时都不想打.
当我将LiveReload设置为编译我的sass文件时出现以下错误:
[31m [0m [31m error] [0m sass/app.scss(第5行:导入未找到或不可读的文件:基础.加载路径:/ Volumes/HDD/htdocs/static_sites/static_ruegg/sass /Applications/LiveReload.app/目录/资源/ SASS.lrplugin/lib/compass/frameworks/blueprint/stylesheets /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib/compass/frameworks/compass/stylesheets /Applications/LiveReload.app/Contents/资源/ SASS.lrplugin/lib/ZURB-foundation/stylesheets Compass :: SpriteImporter)[31m [0m]
我不明白这一点.为了使用LiveRealod,我需要更改什么?
谢谢你的帮助
小智 5
为了避免修改LiveReload.app,您还可以在项目config.rb文件中提供zurb-foundation gem的绝对路径.然后LiveReload将使用该版本.
例如:
代替
require "curb-foundation";
Run Code Online (Sandbox Code Playgroud)
使用
require "/Library/Ruby/Gems/1.8/gems/zurb-foundation-3.1.1/lib/zurb-foundation.rb"
Run Code Online (Sandbox Code Playgroud)
在您的config.rb文件中.