导入Compass Extensions时遇到问题 [英] Trouble importing Compass Extensions

查看:111
本文介绍了导入Compass Extensions时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的sass项目中使用 rgbapng 来生成透明背景跨浏览器,但我似乎无法将其包含在内。它包括行 @import rgbapng; ,但出现此错误:

I am using rgbapng on my sass project with compass to generate transparent backgrounds cross-browser but I cant seem to get it to be included. It have included the line @import "rgbapng"; but I get this error:

error sass/wireframes.scss (Line 103 of sass/_base.scss: File to import not found or unreadable: rgbapng.
Load paths:
  /Users/fredparke/sites/sandbox/sites/all/themes/sandbox/sass
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/blueprint/stylesheets
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets
  /Users/fredparke/sites/sandbox/sites/all/themes/sandbox/sass-extensions/zen-grids/stylesheets
  Compass::SpriteImporter)


推荐答案

结果我只是想念在我的config.rb文件中要求 rgbapng 。我确实没有尝试过第一件事,但是您必须关闭并重新打开终端窗口,以使更改生效。

Turns out I was just missing the require 'rgbapng' in my config.rb file. I did try this first thing to no effect but you have to close and reopen your terminal window for the change to take effect.

这篇关于导入Compass Extensions时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆