Trouble importing Compass Extensions

牧云@^-^@ 提交于 2019-12-11 19:29:43

问题


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)

回答1:


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.



来源:https://stackoverflow.com/questions/18746131/trouble-importing-compass-extensions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!