【问题标题】:How can i set css_dir relative to sass_dir directive in compass config?如何在指南针配置中设置 css_dir 相对于 sass_dir 指令?
【发布时间】:2012-01-01 15:17:09
【问题描述】:

任何人都知道如何在 compass 配置中设置,如果可能的话,css_dir 指令设置为相对于 sass_dir,这是为了确保您可以在动态路径上拥有相对路径。

例如我的目录结构是:

-> 资源 -> 样式表 -> scss

我希望 css 文件将在以下位置生成:

-> 资源 -> 样式表

这是我的代码

http_path = "/"
sass_dir = "/"
css_dir = "../"
images_dir = ""
http_images_path = "#{http_path}"
javascripts_dir = ""
relative_assets = true
line_comments = false
sass_options = {:cache_location => ".compass-cache"}

提前致谢

【问题讨论】:

    标签: config compass-sass sass


    【解决方案1】:

    这应该是可能的,如果它没有在 compass 上提交错误,我们中的一个人会调查发生了什么。 compass compile / watch 命令应该只查找 .s(a|c)ss 文件,所以我不明白为什么这不起作用,如果它不是可能的错误

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-04-06
      • 2013-10-11
      • 2015-05-13
      • 1970-01-01
      • 1970-01-01
      • 2013-10-05
      相关资源
      最近更新 更多