emberfeather / less.js-middleware

Connect Middleware for LESS.js compiling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement: option to add header comment to generated css

fpedroza opened this issue · comments

Would be sweet to be able to include a header comment to the generated css

May have just answered my own question: postprocess.css

For completeness:

app.use(lessMiddleware(__dirname + "/public", {
    force: true,
    compress: false,
    postprocess : {
        css : function(cssIn, req) {
            return '/* generated css */ \n\n' + cssIn;
        }
    }
}));