Is there a way to @import a LESS stylesheet, based on URL?

时间:2015-06-26 09:55:35

标签: less

In my main LESS stylesheet where I @import all my LESS files, I also import a helper file that just indicates some things like breakpoints, etcout ...

//@import url(reset.less);
@import url(variables.less);
@import url(mixins.less);
@import url(base.less);
... etc ...
@import url(mediaqueries.less);
//@import url(indicator.less);

... note the last @import.

Is there a way to only import the last file when the base URL is that of my local, so I don't have to keep commenting out that import rule before compiling?

0 个答案:

没有答案