You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for the sake of code maintenance I've placed all of the bootstrap less files in a subfolder named bootstrap and I am trying to @import it from the parent folder, like so:
Can you please identify what you're doing differently from the unit test. Check the following:
src/test/java/com/asual/lesscss/LessEngineTest.java
src/test/resources/META-INF/less/import-from-subdir.less
for the sake of code maintenance I've placed all of the bootstrap less files in a subfolder named bootstrap and I am trying to @import it from the parent folder, like so:
@import "bootstrap/bootstrap.less";
but I get an error
com.asual.lesscss.LessException: Syntax Error: java.lang.IllegalArgumentException: protocol = http host = null (line -1, column -1) near at com.asual.lesscss.LessEngine.parseLessException(LessEngine.java:215):215 at com.asual.lesscss.LessEngine.compile(LessEngine.java:162):162 at com.asual.lesscss.LessEngine.compile(LessEngine.java:172):172 ...
if I specify the absolute path it works ok.
it looks like the default protocol for import is http and not file. is that the expected behavior? how can I specify a relative path in the @import ?
thank you.
The text was updated successfully, but these errors were encountered: