diff --git a/lib/less/rhino.js b/lib/less/rhino.js index 8ac93eef..9a654b9d 100644 --- a/lib/less/rhino.js +++ b/lib/less/rhino.js @@ -6,7 +6,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) { contents = sheet.contents || {}, input = readFile(sheetName); - input = input.replace(/^\xEF\xBB\xBF/, '') + input = input.replace(/^\xEF\xBB\xBF/, ''); contents[sheetName] = input; @@ -14,6 +14,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) { paths: [sheet.href.replace(/[\w\.-]+$/, '')], contents: contents }); + parser.parse(input, function (e, root) { if (e) { return error(e, sheetName); } @@ -120,5 +121,5 @@ function error(e, filename) { errorline(e, 1); errorline(e, 2); } - print(content); + print(content); } \ No newline at end of file