无法编译现有项目,因为Compass无法找到它

Mer*_*kos 2 css frameworks sass zurb-foundation compass-sass

我刚刚通过执行以下命令在我的应用程序基目录中安装了基础:

compass create myprojectname -r zurb-foundation --using foundation
Run Code Online (Sandbox Code Playgroud)

现在我打开sass/_settings.scss文件,我取消注释第66行,如下所示:

$include-html-classes: true;
Run Code Online (Sandbox Code Playgroud)

最后,我尝试编译我的基础项目,以便通过执行以下命令来包含html类:

compass compile
Run Code Online (Sandbox Code Playgroud)

但我在命令提示符下得到以下结果:

Nothing to compile. If you're trying to starta new project, you have left off the directory argument.
Run "compass -h" to get help.
Run Code Online (Sandbox Code Playgroud)

另外,基于这个页面:http://foundation.zurb.com/old-docs/f3/compass.php我尝试使用以下命令编译我的scss代码:

罗盘手表

但我又得到了与罗盘旁边的编译参数相同的信息.

注意:我在同一目录中执行上面的命令我运行基础项目creationg的第一个命令.

注意:我是指南针,sass,基础框架的新用户.实际上,今天是我第一次使用它们,所以我不是用户.请和我好心:)

有人帮我这个吗?

cim*_*non 6

使用时compass create [directory_name],Compass会在./[directory_name]当前目录的相对位置创建项目(在compass create没有目录名的情况下运行会在当前目录中创建项目).要编译或观察Compass项目,您需要执行以下任一操作:

  • 告诉指南针您的项目所在的位置 compass compile [path_to_config.rb]
  • 切换到找到并运行config.rb的目录 compass compile

或者,您可以将config.rb移动到要运行命令的位置.只需确保编辑所述文件中配置的目录的路径.