11# play-lessc
2- This [ sbt] [ sbt ] plugin for [ Play 2.1.x ] [ play ] provides the ability to use command line tools to compile less through Node instead of Rhino.
2+ This [ sbt] [ sbt ] plugin for [ Play] [ play ] provides the ability to use command line tools to compile less through Node instead of Rhino.
33
44# Prerequisites
55This plugin requires lessc - [ Less] [ less ] command line program - which can be installed through Node.js and npm:
@@ -13,14 +13,14 @@ Locally:
1313 npm install less
1414
1515# Installation
16- Add the resolver and sbt plugin to your ` project/pugins .sbt ` file:
16+ Add the resolver and sbt plugin to your ` project/plugins .sbt ` file:
1717
1818 resolvers += "JMParsons Releases" at "http://jmparsons.github.io/releases/"
1919
20- addSbtPlugin("com.jmparsons" % "play-lessc" % "0.1.0 ")
20+ addSbtPlugin("com.jmparsons" % "play-lessc" % "0.1.1 ")
2121
2222# Usage
23- Import the plugin file into your Build.scala to override settings:
23+ Import the plugin file into your build file to override settings:
2424
2525 import com.jmparsons.plugin.LesscPlugin._
2626
@@ -30,6 +30,16 @@ Set the default `lessEntryPoints` to `Nil` and put in your custom ones into less
3030 (base / "app" / "assets" / "stylesheets" * "*.less")
3131 )
3232
33+ build.sbt example:
34+
35+ play.Project.playScalaSettings ++ lesscSettings
36+
37+ lessEntryPoints := Nil
38+
39+ lesscEntryPoints in Compile <<= baseDirectory(customLessEntryPoints)
40+
41+ Build.scala example:
42+
3343 lazy val main = play.Project(appName, appVersion, mainDeps).settings(lesscSettings: _*).settings(
3444 lessEntryPoints := Nil,
3545 lesscEntryPoints in Compile <<= baseDirectory(customLessEntryPoints)
@@ -49,6 +59,10 @@ A directory value is required for a non global copy of lessc (trailing slash opt
4959
5060## Changelog
5161
62+ 0.1.1 - October 4, 2013
63+
64+ - Updated to work with Play 2.2.x.
65+
52660.1.0 - September 2, 2013
5367
5468- Windows works now with a global or local copy of lessc using lessc.cmd as a fallback.
0 commit comments