Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
update less to 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinr committed Feb 4, 2015
1 parent 9f32db7 commit 579edd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions com.palantir.less/bin/main.js
Expand Up @@ -21,13 +21,8 @@ var less = require("less");
var lessFile = process.argv[process.argv.length - 2];
var lessContents = fs.readFileSync(lessFile, "utf-8");

var parser = new less.Parser({
filename: lessFile
});

// compile the LESS file to CSS
parser.parse(lessContents, function (e, tree) {
var cssContents = tree.toCSS();
var cssFile = process.argv[process.argv.length - 1];
fs.writeFileSync(cssFile, cssContents, "utf-8");
less.render(lessContents, { filename: lessFile }, function(error, output) {
var cssFile = process.argv[process.argv.length - 1];
fs.writeFileSync(cssFile, output.css, "utf-8");
});
2 changes: 1 addition & 1 deletion com.palantir.less/package.json
Expand Up @@ -3,6 +3,6 @@
"name": "eclipse-less",
"version": "1.4.2",
"devDependencies": {
"less": "1.4.2"
"less": "2.3.1"
}
}

0 comments on commit 579edd9

Please sign in to comment.