Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    connect-less-errorspublic

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

    Keywords

    none

    install

    npm i connect-less-errors

    Downloadsweekly downloads

    2

    version

    0.1.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar