2012-02-20 6 views
0

우분투 컴퓨터에서 명령 줄 프로그램 lesscinstalled by following this guide을 사용하면 예상대로 @import 규칙을 컴파일하지 않는 것 같습니다.@import가 작동하지 않는 것 같습니다.

$ echo '@import "inc.less"' > test.less 
$ echo 'body { background: pink }' > inc.less 
$ lessc test.less 

출력은 빈 줄입니다. 나는 inc.less의 내용을 기대했다. 내가 여기서 뭔가 잘못하고있는거야?

답변

3

.less 확장자를 사용하지 마십시오

@import "inc";을보십시오. 세미콜론이 필요하다고 생각합니다.

예를 들어, 여기에 나를 위해 노력하고 몇 줄의 :

@import "blueprint/screen"; 
@import "blueprint/ie"; 

a, a:link, a:visited, a:hover, a:active 
{ 
    text-decoration:none; 
    color:#FF0000; 
} 

그 수입 청사진/screen.less청사진/파일에 ie.less.

+0

물론, 세미콜론이 누락되었습니다. – Vitamin

관련 문제