If you use LESS @import to combine bootstrap.less and responsive.less in a 
single LESS file, the redundant @import of variables and mixins in the 
latter will cause unintended side effects and breakage. 

In other words, you need to either 

A) Leave them compiled separately (and use some other bundling / file 
concat mechanism besides LESS @import if you want just one .css asset in 
your page), 

- or -

B) Comment out the redundant variables and mixins import statements in 
responsive.less before bringing bootstrap.less and responsive.less together 
into a single compiled .css file

To confirm, you could create two files:
1. "wrong.less" containing just:
@import "bootstrap.less";
@import "responsive.less"; 

2. "right.less" containing just:
@import "bootstrap.less";
@import "responsive-modified.less"; // in which the mixins and variables 
@imports are commented out

Then do lessc on them, and diff right.css and wrong.css.

HTH
Chris

On Friday, November 9, 2012 10:13:17 AM UTC-5, Paolo Umali wrote:
>
> Or it still has to be explicitly required because of recomputation or 
> something?

Reply via email to