2016-09-19 89 views
0

我有一个现有的项目,我试图将CSS切换到Sass,但是无法开始工作。我按照教程here,它的工作原理,但是当我尝试在我的项目中模仿它,它不起作用。在命令提示符中,我有c:\ main \ sub \ working \罗盘监视(这是指南针正在监视的位置)。在我config.rb文件(../working/sass)我有:无法编译的问题

# Require any additional compass plugins here. 

#Folder settings 
relative_assets = true  #because we're not working from the root 
project_path = "c:\main\sub\working\" 
css_dir = "../test"   #where the CSS will saved 
sass_dir = "../sass"   #where our .scss files are 

# You can select your preferred output style here (can be overridden via the command line): 
output_style = :expanded # After dev :compressed 

# To disable debugging comments that display the original location of your selectors. Uncomment: 
line_comments = true 

# Obviously 
preferred_syntax = :scss 

所以我在测试文件夹中的文件夹SASS和style.css文件test.scss。指南针似乎没有找到变化,所以我确定我的设置错了,但无法弄清楚如何改变它们。

文件夹结构:

c: 
\main 
    \sub 
    \working 
    \sass 
     config.rb 
     test.scss 
    \test 
     style.css 

回答

1

你说你正在运行c:\main\sub\working\compass watch你需要cd到其中config.rb是目录,然后运行compass watch

cd c:\main\sub\working\sass 
compass watch 
+0

是的这个工作的感谢 – Keith