https://github.com/martinodf/connect-less
A simple less middleware for Connect
https://github.com/martinodf/connect-less
Last synced: about 1 year ago
JSON representation
A simple less middleware for Connect
- Host: GitHub
- URL: https://github.com/martinodf/connect-less
- Owner: MartinodF
- License: mit
- Created: 2011-09-12T02:12:29.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-09-06T12:47:49.000Z (almost 14 years ago)
- Last Synced: 2025-05-07T21:01:49.756Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://martinodf.github.com/connect-less
- Size: 130 KB
- Stars: 20
- Watchers: 1
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# connect-less
A simple [less](http://lesscss.org) middleware for Node's [Connect](https://github.com/senchalabs/connect), able to compile your `.less` files on the fly as needed. Just plug connect-less to your Connect/Express application to let it manage your `.less` -> `.css` conversions automatically.
## How do I do it?
Use [NPM](http://npmjs.org) 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](http://jashkenas.github.com/docco)-commented source code with the full description of the available options [here](http://martinodf.github.com/connect-less).