SHORT: Is there a possibility to import less files "on demand", only when the function/variable has not been defined yet?LONG: Let's assume I have LESS file containing my styles for the page. Let's call it \[code\]styles.less\[/code\]. In addition, I have 5 more LESS files. Everyone of there contains generic design primitives, for example design of the info box which I use in many projects - that's the reason it's not been merged to \[code\]styles.less\[/code\]. Let's assume it's called \[code\].infobox {}\[/code\].
Then, is it somehow possible to "try" to import that 5 files when \[code\].infobox\[/code\] is not found in \[code\]styles.less\[/code\]? I'm interested in both compiling via lessc (module for node) and "on-the-fly" compilation in web browser.I hope my examples clarify the situation enough - if not, feel free to comment and I'll edit the question to provide more information.
Then, is it somehow possible to "try" to import that 5 files when \[code\].infobox\[/code\] is not found in \[code\]styles.less\[/code\]? I'm interested in both compiling via lessc (module for node) and "on-the-fly" compilation in web browser.I hope my examples clarify the situation enough - if not, feel free to comment and I'll edit the question to provide more information.