When an '@import'-ed file is empty, further '@imports' are not processed
Closed this issue · 1 comments
marklagendijk commented
I have tested this with the newest version of your script + version 1.1.4 of less.js.
main.less:
@import "imports/import1";
@import "imports/import2";
imports/import1.less : empty
imports/import2.less:
.import2{
height: 55px;
}
No errors are thrown, but the output file test.css is empty. If a comment is added to import1.less (either a css comment or a less comment) import2.less does get proccessed.
duncansmart commented
Assume this is some sort of JScript issue again. Workaround would be to concatenate a simple comment such as /* filename */
to the data
parameter to parser.parse(...)
.