DotLess을 프로젝트에 사용하려고하는데 해결할 수없는 문제가 있습니다. 내 자신의 사용자 지정 파일에 덜 믹스를 사용하여 기존 CSS 파일 (실제로 JQuery UI에서)을 확장하려고합니다.DotLess가 CSS 파일을 가져 오지 않았습니다.
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #79b7e7; background: #d0e5f5 url(images/ui-bg_glass_75_d0e5f5_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1d5987; }
그리고 내 custom.less 파일의 관련 부분 : JQuery와-UI-1.8.20.custom.css에서
나는 이것을 컴파일하려고
@import "./jquery-ui-1.8.20.custom.css";
.sortable-list li:hover {
.ui-state-hover;
}
다음과 같은 점이없는 명령 : 나는 다음과 같은 오류 메시지가 나타납니다
.\dotless-compiler -m [LESS_FILE_PATH]\custom.less .\custom.generated.css
:
.ui-state-hover is undefined on line 92...
[91]: .sortable-list li:hover {
[92]: .ui-state-hover;
----^
[93]: }[Done]
a) 명령 줄 컴파일러에 인수가 누락 된 사람은 누구입니까? (문서는입니다.)
b) 그렇지 않은 경우 설명 된 상황을 처리 할 수없는 몇 가지 고유 한 LESS의 단점이 있습니까? 터치 할 수없는 기존 CSS 파일을 확장하는 것은 매우 일반적인 사용 사례처럼 보입니다.
고마워요. 이것은 효과가 있었다. 프로젝트의 누군가가 이것을보고 30 초 동안 wiki에 컴파일러 문서를 추가하기를 바랍니다. – MgSam