Skip to content
Less css compiler plugin for the leiningen (clojure) build tool
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
java/leiningen/less
sample Upgraded less.js to version 1.7.2 and added support for nashorn (Java 8) Jun 21, 2014
src/leiningen
test/leiningen/less
.gitignore
CHANGES.md Upgraded less.js to version 1.7.2 and added support for nashorn (Java 8) Jun 21, 2014
LICENSE Initial commit: lesscss.org plugin for leiningen Nov 6, 2013
README.md upgraded less to 1.7.5 May 26, 2015
project.clj

README.md

lein-less

This is a Leiningen plugin that will compile Less CSS files (see lesscss.org) using the less.js compiler running on the JVM. lein-less is ideal for compiling Less CSS files during automated builds: compilation happens as part of your regular leiningen build without requiring any tools or configuration other than your leiningen project file.

Requirements

This plugin is only tested against recent versions of leiningen and clojure. Works with Java 7 or Java 8.

Usage

To install the plugin, add [lein-less "1.7.5"] to your project.clj file:

  :plugins [[lein-less "1.7.5"]]

The plugin will compile .less files found in your leiningen project's resource directories.

To compile .less files once:

lein less once

To continuously compile .less files whenever a file changes:

lein less auto

Configuration

You can configure different behaviour by adding a :less map to your leiningen project:

  :less {:source-paths ["src/main/less"]
         :target-path "target/public/css"}

If you want less compilation to happen on regular lein targets (e.g. compile), add leiningen.less to your leiningen project file's hooks:

  :hooks [leiningen.less]

License

Copyright © 2015 Montoux Ltd.

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

You can’t perform that action at this time.