Skip to content

Commit

Permalink
Support for relative @import in less files
Browse files Browse the repository at this point in the history
I was playing with bootstrap and found that piler's less compiler
couldn't handle the @import "reset.less" in bootstrap.less. This fixes
the issue. It should not negatively impact any other less projects.
  • Loading branch information
rdrey committed May 5, 2012
1 parent 783be41 commit 812725e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/compilers.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coffeescript = require "coffee-script"
path = require "path"

try
stylus = require "stylus"
Expand Down Expand Up @@ -48,8 +49,9 @@ if stylus?
if less?
compilers.less =
render: (filename, code, cb) ->
less.render code, cb
less.render code,
paths: [path.dirname filename]
cb
targetExt: "css"


module.exports = compilers

0 comments on commit 812725e

Please sign in to comment.