【问题标题】:Compiling .scss file with Compass Compiler gets me a strange error用 Compass Compiler 编译 .scss 文件给我一个奇怪的错误
【发布时间】:2013-07-26 05:07:41
【问题描述】:

我正在处理一个 .scss 文件,当我使用 Compass 编译时出现此错误:

unrecognized file type: png

它声称这是错误的行:

    $factor : image-height(sprite-path($ico-retina-sprites)) / image-height(sprite-path($ico-sprites));

我很确定代码没有任何问题,因为其他人能够很好地编译他们的项目,所以我想知道您是否知道发生这种情况的另一个原因(即安装 Ruby 版本或其他东西) ?

谢谢!

【问题讨论】:

  • 你为 $ico-retina-sprites 和 $ico-sprites 赋予了什么价值?
  • 仔细检查您的图片?有些人发现损坏的图像正在阻止他们的 sprite sheet 正确生成。

标签: css sass compass-sass


【解决方案1】:

我想出了答案。它不完全知道为什么会这样解决它,但我只是硬重置了我的本地存储库并清除了我的指南针缓存,错误就消失了!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-10-18
    • 1970-01-01
    • 2017-03-09
    • 1970-01-01
    • 1970-01-01
    • 2015-12-22
    • 1970-01-01
    • 2013-11-02
    相关资源
    最近更新 更多