Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (12 sloc) 0.727 kb

Connect-LESS-Errors

LESS CSS error reporting middleware for Connect.js's compiler middleware.

Error when compiling a .less file? Instead connect of sending just an empty .css file, connect will send a .css file containing the error.

Example Usage (with Express)

var lessErrorHandler = require ('./connect-less-error/connect-less-error.js');

....

    app.use(express.compiler({src: __dirname + '/public', enable:['less']}));
    app.use(lessErrorHandler);
    app.use(express.static(__dirname + '/public'));
    app.use(express.errorHandler()); 
Jump to Line
Something went wrong with that request. Please try again.