cloudhead/less.js — Issue #636: lessc doesn't adjust relative url() paths when using relative @imports
Author: KidkArolis
Created: 2012-02-15 12:15:42+00:00
State: open

I have this structure

project
---img
------icon.png
---css
------main.less
---------views
------------foo.less

The contents of main.less are
@import "views/foo";

The contents of foo.less are
.icon {
background-image: url(../../img/icon.png);
}

when I execute
lessc main.less > main.css

The path to the image in main.css should be adjusted, but it's not:
.icon {
background-image: url(../img/icon.png);
}