The main question you ask is
"How can I just use bootstrap.less as a compilation link?"
Starting from version LESS version 1.5
For LESS 1.5, you can now import the file solely as a link. For example:
@import (reference) 'bootstrap.less';
No actual code will be output from this file as CSS, but everything becomes available for use as mixins.
Original response (kept for context for all comments)
[DISCLAIMER: It is unclear whether this will work with 1.3.3, but this original answer, which I really believe, has some usefulness in later versions. However, in order to really get what the OP required, a new feature in LESS 1.5 is recommended.]
Current versions of LESS (1.3.3) can match this with a namespace. For example:
#bootstrapRef() { @import: 'bootstrap.less': } input
Having made the mixin namespace (adding brackets after the name), it will still import the file (I don’t know how to access it from the outside without importing it), but it should not compile the actual boot code into your final css file output. What this method should do is access to bootstrap classes, mixins, etc. By calling the #bootstrapRef > namespace, which allows you to use them in your own specific classes, etc.
I have not fully tested, if there are any errors, it should just theoretically work.
ScottS Jan 22 '13 at 16:39 2013-01-22 16:39
source share