문제

I want to import some vars and mixings from a less file located under a subdirectory.

I´m using the following code:

@import "./subdirectory/file.less"

I have tried:

@import "subdirectory/file.less"

But the compiler shows the following error:

!Syntax Error: on line 3: expected one of @import *-@:.#
도움이 되었습니까?

해결책

@import "/subdirectory/file.less";

You seem to be missing the semi-colon?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top