2016-09-19 3 views
0

나는 CSS를 Sass로 전환하려고하지만 기존에 작업하는 데 어려움을 겪고있는 기존 프로젝트가 있습니다. 튜토리얼 here에 따라 작동하지만 프로젝트에서 모방하려고 할 때 작동하지 않습니다. 명령 프롬프트에서 나는 c : \ main \ sub \ working \ compass watch (나침반이보고있는 곳)을 가지고있다. 내 config.rb 파일 (../working/sass)에서 내가 가진 : 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 

그래서 내가 테스트 폴더에 말대꾸 폴더있는 style.css에 test.scss 있습니다. 나침반은 변경 사항을 찾지 못해 설정이 잘못되었다고 생각하지만 변경 방법을 알 수는 없습니다.

폴더 구조 :

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

답변

1

당신은 당신이 config.rb이있는 디렉토리에 cd에 필요 compass watch

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

네이 일 감사를 실행하면 c:\main\sub\working\compass watch를 실행하는 진술 – Keith