stefon
stefon copied to clipboard
Booststrap LESS source compile throws V8 Error
Including standard Bootstrap LESS source files with bootstrap.less as a starting point, the following error is thrown by link-to-asset
:
V8 error: ERROR:null:null:-1:
undefined
TYPE: Syntax
INDEX: undefined
EXTRACT: ,,@import "variables.less";
Here is how I am including it in my view layout function:
(include-css (link-to-asset "bootstrap/less/bootstrap.less" {}))
This seems to be caused by @import
. Is this supported by the LESS pipeline?
It might require a newer version of less than is supported by stefon by default?
I looked at clj-v8 on clojars, but it seems like 0.1.5 is the latest version. Probably the wrong place.
Then I looked at the LESS vendor scripts in stefon/stefon-core/resources/vendor/
. There is LESS Rhino versions 1.2.1 and 1.3.3. Bootstrap 2 and up requires 1.3+. How can I tell which version is being used by Stefon?
Here: https://github.com/circleci/stefon/blob/master/stefon-core/src/stefon/asset/less.clj