softprops/less-sbt — Issue #3: Imports should not be compiled
Author: hlascelles
Created: 2011-10-25 11:10:41+00:00
State: open

Great plugin... but I'm having trouble with imports.

I have two files thus:

baseline.less
forms.less

Baseline declares a variable @baseline and imports forms with @import "forms.less";

less-sbt compiles baseline.less just fine.

But then immediately afterwards, less-sbt tries to compile forms.less which has no reference to @baseline and it tanks.

Lift/compile:less: error occured while compiling /less/forms.less: variable @baseline is undefined

I tried moving the imports to another dir and rereferencing, but then baseline won't compile. Is there a way to exclude compilation of imports?

A great project to try this on is twitter bootstrap.

Thanks!