Skip to content

Commit

Permalink
Updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
Krasimir Tsonev committed Dec 15, 2012
1 parent fdd7c4c commit 4564f82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -25,4 +25,14 @@ example:
"destination": __dirname + "/compiled/styles.css"
});

or with callback:

require("lesscompile").init({
"pathToWatch": __dirname + "/less",
"fileToCompile": __dirname + "/less/main.less",
"destination": __dirname + "/compiled/styles.css"
}).onCompile(function() {
console.log("callback called");
});

The usage of absolute paths is recommended.

0 comments on commit 4564f82

Please sign in to comment.