berfarah / LESS-build-sublime

Less build sytem for Sublime Text 2
Apache License 2.0
91 stars 14 forks source link

Less-builder not detect children classes #36

Open KasperKRK opened 11 years ago

KasperKRK commented 11 years ago

Hi. I've problem with compile less code to css. My code work properly in less.js.

This is stucture in part of my code: .box { border: 1px solid @box-border; padding:10px;

&.box-rounded {
    border-radius:5px;
}

&.box-white {
    background-color: #FFFFFF;
}

&.box-gray {
    background-color: #f9f9f9;
}

}

and after that i build other classes from this like for ex.

.box-classic { .bbox; .box-rounded; .box-white; }

This work fine in javascript compiler but not with less-builder. Now i don't know It's issue with my code or with builder.

It's error output from compiler NameError: .box-rounded is undefined in /home/mink/repo/redlight.loc/web/css/network/base.less:366:1 365 .bbox; 366 .box-rounded; 367 .box-white;

[Finished in 0.1s with exit code 2]