【问题标题】:Using compass with Yeoman project, but outside of Yeoman server在 Yeoman 项目中使用指南针,但在 Yeoman 服务器之外
【发布时间】:2013-01-13 18:11:36
【问题描述】:

我绕过了内置的 Yeoman 服务器并直接从 /app 目录切断文件。由于 Yeomen 的服务器管理 compass/sass 编译,我很难在它之外运行 compass。直接运行 compass cli 是不行的;它不知道它在现有的指南针项目中。所以我得到:

$ compass watch /app (or /app/styles)
Nothing to compile. If you're trying to start a new project, you have left off the directory argument.

有没有人有过让这个工作的经验?

【问题讨论】:

  • 我也有类似情况;我将 Yeoman 介绍给一个需要 IIS 的项目。期待看到如何解决这个问题。
  • yeoman compass 将执行 GruntFile.js 中设置的配置。或者这不是你的意思?

标签: compass-sass yeoman


【解决方案1】:

您必须将 Compass 设置移出到 config.rb file 才能使用 Compass CLI。

但是,您可以轻松地单独运行 Compass grunt 任务,例如 grunt compass 进行编译,或 grunt watch 在文件更改时自动编译。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-12-10
    • 2013-12-16
    • 1970-01-01
    • 2016-03-09
    • 1970-01-01
    • 2017-01-24
    • 2012-12-13
    • 1970-01-01
    相关资源
    最近更新 更多