Skip to content

Commit

Permalink
merge from patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
es128 committed Mar 26, 2013
2 parents d9cd966 + 6e812e7 commit 196a6c9
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ config:
less:
dumpLineNumbers: 'comments'
```

90 changes: 90 additions & 0 deletions lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ module.exports = class LESSCompiler
compile: (data, path, callback) ->
parser = new less.Parser
paths: [@config.paths.root, (sysPath.dirname path)],
filename: path
filename: path,
dumpLineNumbers: if @config.optimize then null else @config.plugins?.less?.dumpLineNumbers
parser.parse data, (error, tree) =>
return callback error.message if error?
result = null
Expand Down

0 comments on commit 196a6c9

Please sign in to comment.