如何将指南针的config.rb放在css和scss文件上方的目录中?

时间:2012-10-23 11:29:59

标签: configuration compass-sass

所以我有

- [folder]
  + config.rb
  + [scss]
  + [js]
  + [img]
  + [css]

但我想要

- [folder]
  + config.rb
  - [folder]
    - [folder] 
      + [scss]
      + [js]
      + [img]
      + [css]

我已经尝试了project_path变量,但它没有用。任何帮助都会很棒

1 个答案:

答案 0 :(得分:2)

对于这种结构:

- deploy/
  + config.rb
  - public_html/
    - assets/ 
      - sass/
      - js/
      - img/
      - css/

试试这个:

http_path = "public_html/"
sass_dir = "public_html/assets/sass"
css_dir = "public_html/assets/css"
images_dir = "public_html/assets/img"
javascripts_dir = "public_html/assets/js"
relative_assets = true