CircleCI-Archived / stefon

An asset pipeline for clojure
98 stars 16 forks source link

Booststrap LESS source compile throws V8 Error #33

Open theronic opened 9 years ago

theronic commented 9 years ago

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?

pbiggar commented 9 years ago

It might require a newer version of less than is supported by stefon by default?

theronic commented 9 years ago

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?

pbiggar commented 9 years ago

Here: https://github.com/circleci/stefon/blob/master/stefon-core/src/stefon/asset/less.clj