Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple less middleware for Connect
JavaScript
Tag: v0.2.3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
lib
.gitignore
LICENSE
README.md
package.json

README.md

connect-less

A simple less middleware for Node's Connect, able to compile your .less files on the fly as needed.

What?!

You just have to plug connect-less to your Connect/Express application to let it manage your .less -> .css conversions automatically.

How do I do it?

Use NPM to install connect-less

npm install connect-less

Then load it in your app, specifying the source (and optionally destination) directory

app.use(require('connect-less')({ src: __dirname + '/public/' }));

Just that?

Yes, connect-less will take care of everything.

If you want, you can read the docco-commented source code with the full description of the available options here.

Something went wrong with that request. Please try again.