我想知道如何在Koala app中使用susy项目编译指南针。我收到以下错误消息:
LoadError on line ["45"] of C:cannot load such file -- susy
Run with --trace to see the full backtrace
我的config.rb(它是通过命令行创建的):
require 'compass/import-once/activate'
# Require any additional compass plugins here.
require 'susy'
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
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
output_style = :expanded
# 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
考拉应用:
自动编译
SASS默认选项:指南针模式,自动安装
输出样式:嵌套
答案 0 :(得分:0)
如果您还没有在命令提示符中使用以下两个命令:
gem install compass
几秒钟之后它会响应告诉你1个宝石成功安装。如果成功,请输入以下内容:
gem install susy
如上所述它应该告诉你安装了1个宝石。如果这些安装正确,请返回您的Koala应用程序并转到主设置菜单并选择
Sass>高级设置
勾选选项'使用系统Sass编译器',保持路径不变。 然后单击指南针设置打开'使用系统指南针编译器',再次保持路径不变。
您可能需要在Koala中刷新项目。
打开config.rb文件,在第一行下面添加以下内容:
require 'susy'
并保存。现在在你的Sass文件中添加以下顶部:
@import "susy";
你应该好好去!尝试添加一些简单的东西,看它是否编译。