Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Unable to compile Twitter Bootstrap less #20

Open
nullpainter opened this issue Jan 28, 2014 · 0 comments
Open

Unable to compile Twitter Bootstrap less #20

nullpainter opened this issue Jan 28, 2014 · 0 comments

Comments

@nullpainter
Copy link

I'm using gradle-css-plugin 1.8.2 and Gradle 1.8.

Twitter Bootstrap uses a single bootstrap.less file which uses @import to include all sub-components. I am therefore using the plugin as so:

css.source {
  less {
    css {
      srcDir "src/main/webapp/bootstrap/less"
      include "bootstrap.less"
    }
  }
}

However, this results in the following error when running the lesscss task:

> Less compilation error at src/main/webapp/bootstrap/less/bootstrap.less:0
  org.mozilla.javascript.EcmaError: TypeError: Cannot call method "toCSS" of undefined (file:/Users/matt/.gradle/caches/artifacts-26/filestore/com.asual.lesscss/lesscss-engine/1.3.0/jar/901d3011fa670f9e90bd4f83994bf81d1b0f067d/lesscss-engine-1.3.0.jar!/META-INF/engine.js#67)

FWIW, the other gradle less plugin at https://github.com/obecker/gradle-lesscss-plugin works fine using this approach. However, I'd really like all of the other features provided by gradle-css-plugin so am loathe to switch. This is using Bootstrap 2.3.2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant