【问题标题】:Compass warning when watching Foundation 5 folder观看 Foundation 5 文件夹时的指南针警告
【发布时间】:2014-12-09 21:01:21
【问题描述】:

我正在使用 Compass 编译和查看 Foundation CSS 文件。但是,这些更改要么没有被应用,要么正在发生。我尝试更改整个网站的背景以测试它是否是我的 scss 文件。但事实证明,这似乎是 Compass 或 Foundation 的问题。

在初始化罗盘手表时还会显示以下消息。

You're using Sass 3.4 or higher to compile Foundation. This version causes CSS classes to output incorrectly so we recommend using Sass 3.3 or 3.2.

To use the right version of Sass on this project run "bundle" and then use "bundle exec compass watch" to compile Foundation.

我仍然无法使用捆绑软件修复它。任何帮助将不胜感激

【问题讨论】:

    标签: ruby sass zurb-foundation compass


    【解决方案1】:

    【讨论】:

      【解决方案2】:

      您可以查看“创建指南针项目”下的Foundation docs,上面写着

      在所有 Sass 库都赶上 Sass 3.4 之前,Foundation 将使用 Sass 3.2。这意味着如果您已升级到 Sass 3.4+ 和 Compass 1.0+,编译 Compass 项目的命令会略有变化。

      然后按照以下步骤操作。基本上你现在用bundle exec compass watch 编译而不是compass watch

      如果您没有安装 Bundler,您可以在他们的新 Foundation for apps 文档中查看 first step,但基本上您需要像这样安装 gem

      gem install bundler
      

      希望对你有帮助

      【讨论】:

        猜你喜欢
        • 2011-11-30
        • 2012-05-30
        • 1970-01-01
        • 2015-02-27
        • 2015-01-16
        • 1970-01-01
        • 1970-01-01
        • 2014-05-09
        • 2017-01-24
        相关资源
        最近更新 更多