【发布时间】:2013-12-12 23:43:42
【问题描述】:
我在现有站点上使用 Sass,并决定在 Win7x64 上启动并运行 Compass。 Ruby、HAML、Compass 都安装得很好(afaik)。
我在c:\project 有一个项目,其中有一个由c:\project\static 提供的静态文件,其目录结构必须保持不变。我进入c:\project\static 并运行了这个:
compass create css-compass
这导致了以下目录结构
c:\project\static\css (previously existed; output css)
c:\project\static\css-sass (previously existed; source css)
c:\project\static\css-compass (the new compass dir created by compass)
这是我的 config.rb:
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "..\\css"
sass_dir = "..\\css-sass"
images_dir = "images"
javascripts_dir = "javascripts"
当我转到c:\project\static 并运行compass watch compass-css 时,我收到以下错误:
没有什么可编译的。如果你正在尝试 开始一个新项目,你已经离开了 关闭目录参数。跑 "compass -h" 获取帮助。
但是,如果我在 c:\project\static\css-compass 中从 css->..\css 和 css-sass => ..\css-sass 创建符号链接,那么一切正常。
什么是什么?
【问题讨论】:
标签: css sass compass-sass