【问题标题】:gemfile for non-rails project?非rails项目的gemfile?
【发布时间】:2014-04-20 04:08:39
【问题描述】:

我想为网站使用字体很棒的图标。 这是一个 jekyll (ruby) 项目,所以我考虑使用 font-awesome-sass gem。

gemfiles 仅适用于 rails 应用程序还是我在这里遗漏了什么?

font-awesome 网站的安装说明如下:

Add this line to your application's Gemfile:
gem 'font-awesome-sass'

And then execute:
$ bundle

Or install it yourself as:
$ gem install font-awesome-sass

我已经安装了 font-awesome-sass gem。

我该怎么做?

【问题讨论】:

  • 你通常如何编译你的 Sass 文件?
  • 带有来自 cli 的“指南针手表”。那么......我可以把它放在 config.rb 中吗?

标签: sass font-awesome glyphicons


【解决方案1】:

宝石不仅限于 Rails。 Compass 可以使用 gem,但它们需要首先遵循某些约定。我查看了 Font Awesome 并没有发现任何迹象表明它可以被 Compass 使用。

相关:How can i create SASS mixins and use in every project

【讨论】:

    猜你喜欢
    • 2013-09-13
    • 1970-01-01
    • 2014-04-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多