Less and @import statements

141 views
Skip to first unread message

Edgar Espina

unread,
Feb 17, 2012, 3:50:28 PM2/17/12
to wr...@googlegroups.com
Hi,

 @import statements fails using less as a post processor. This less processor looks for files under the user's home directory. Any ideas on how to fix this?

Thanks.


wro4j: 1.4.3
mode: runtime

Alex Objelean

unread,
Feb 17, 2012, 3:59:21 PM2/17/12
to wr...@googlegroups.com
Does your configuration contains CssImportPreProcessor? This preprocessor should remove all imports and replace them with actual resources to be post process, thus no problem should appear when using LessCss as a post processor. 


Edgar Espina

unread,
Feb 17, 2012, 5:02:47 PM2/17/12
to wr...@googlegroups.com
No, it doesn't contain the cssimportpreprocessor and less processor works as a post-processor.

Here is the exception:
ro.isdc.wro.WroRuntimeException: Could not execute the script because: {"type":"SyntaxError","message":"java.io.FileNotFoundException: /home/default.less (No such file or directory)","filename":null,"index":"org.mozilla.javascript.Undefined@1aed7c1","line":null,"callLine":"org.mozilla.javascript.Undefined@1aed7c1","callExtract":"org.mozilla.javascript.Undefined@1aed7c1","stack":"org.mozilla.javascript.Undefined@1aed7c1","column":-1.0,"extract":["org.mozilla.javascript.Undefined@1aed7c1","org.mozilla.javascript.Undefined@1aed7c1"," * Styles for view all.html"]}

Thanks, Alex

Alex Objelean

unread,
Feb 17, 2012, 5:25:45 PM2/17/12
to wr...@googlegroups.com
You should add cssImportPreProcessor, otherwise imports won't be found.
Reply all
Reply to author
Forward
0 new messages