0.2.0 • Published 12 years ago

connect-lesscss v0.2.0

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

Introduction

connect-lesscss is Connect middleware that compiles LESS to CSS. Since express is built on top of Connect, connect-lesscss will allow you to compile LESS with expressjs.

Installation

npm install connect-lesscss

Usage

Example using express:

less = require('connect-lesscss')
app = require('express').createServer()

app.use("/main.css", less("path/to/main.less", {
  paths: ["path/to/other/less/files"]
}));

app.listen(80);

The middleware builder takes two arguments source and options

  • source: The path to the main .less file to compile
  • options: Object of options with the following keys
    • paths: Array of paths to .less files for @imports

If options.paths is not defined, it will default to the directory containing the source file (path.dirname(source)).

0.2.0

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago