Skip to content

Commit

Permalink
Output also a source map, fixed jgreene#10
Browse files Browse the repository at this point in the history
  • Loading branch information
layerssss committed Jul 14, 2016
1 parent 9416243 commit bdacf52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli.js
Expand Up @@ -103,6 +103,10 @@ var parseLessFile = function(input, output){
var css = lessOutput.css;
var fd = fs.openSync(output, "w");
fs.writeSync(fd, css, 0, "utf8");
if(lessOutput.map){
var fd_map = fs.openSync(output + ".map", "w");
fs.writeSync(fd_map, lessOutput.map, 0, "utf8");
}
}
}, function(error) {
less.writeError(error, options);
Expand Down

0 comments on commit bdacf52

Please sign in to comment.