我试图将Compass包含到我现有的项目中。也许问题出现了,因为我之前已经在我的项目中使用了sass和scss。
根据http://compass-style.org/install/我尝试了这些命令。
$ gem install compass
$ cd <myproject>
$ compass create --sass-dir "public/stylesheets" --css-dir "public/stylesheets" --javascripts-dir "public/javascripts" --images-dir "public/img"
似乎是成功的,它会创建所有的css文件。
之后我尝试
compass compile
并且没有错误,它列出了所有未更改的文件。
现在我试图使用
@import "compass/css3"
使用所有mixins。显然我的项目中没有指南针文件夹,所以我克隆了#34;指南针&#34;使用&#34; css&#34;的文件夹从github进入我的项目的文件夹。
https://github.com/chriseppstein/compass/tree/stable/frameworks/compass/stylesheets/compass
发生此错误
Sass::SyntaxError: File to import not found or unreadable: compass/css3.
有什么简单的我缺少或我完全走错了路?
答案 0 :(得分:0)
尝试使用
compass watch
比手动编译更舒服。