Connect middleware for sending LESS CSS compiler errors with a CSS response file. For use with and after Connect's compiler middleware.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
connect-less-errors.js

README.md

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());