An Eclipse builder plug-in for precompiling LESS files.
- Install Node.js.
- Open Eclipse and go to
Help
-Install New Software
. - Add the update site: http://eclipse-update.palantir.com/eclipse-less/.
- Reboot Eclipse.
- Right-click on a project containing LESS files.
- Select
Configure
-Enable LESS Builder
.
- Create
your-project/.settings/com.palantir.less.prefs
- Add Eclipse style key/value pairs for the root less files
A .settings/com.palantir.less.prefs
might look like
srcFiles=src/app.less;src/login.less
git clone git@github.com:palantir/eclipse-less.git
- Run
npm install --prefix com.palantir.less com.palantir.less
in the root directory of the project to install npm dependencies. - In Eclipse, right-click on the
eclipse-less
project and selectDebug As
-Eclipse Application
.
grunt
mvn clean install
The update site will be in com.palantir.less.p2updatesite/target/repository
.