【问题标题】:Unable to compile an existing project because Compass can't find it无法编译现有项目,因为 Compass 找不到它
【发布时间】:2013-07-17 17:23:59
【问题描述】:

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

compass create myprojectname -r zurb-foundation --using foundation

现在我打开了 sass/_settings.scss 文件,我取消了第 66 行的注释:

$include-html-classes: true;

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

compass compile

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

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

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

指南针手表

但我再次收到与指南针旁边的编译参数相同的消息。

注意:我在同一目录中执行上述命令,我为基础项目创建运行第一个命令。

注意:我是 compass、sass、foundation 框架的新手。实际上,今天是我第一次使用它们,所以我不是经验丰富的用户。请善待我:)

有没有人可以帮我解决这个问题?

【问题讨论】:

    标签: css frameworks sass compass-sass zurb-foundation


    【解决方案1】:

    当您使用compass create [directory_name] 时,Compass 在相对于您当前目录的./[directory_name] 中创建您的项目(运行compass create 而不使用目录名称会在当前目录中创建项目)。为了编译或观看 Compass 项目,您需要执行以下任一操作:

    • 通过compass compile [path_to_config.rb] 告诉 Compass 您的项目在哪里
    • 切换到config.rb所在的目录,运行compass compile

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-24
      • 1970-01-01
      • 1970-01-01
      • 2018-06-04
      • 2017-12-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多