less-bs-middleware

Connect middleware for bootstrap using less.

Express / Connect middleware for bootstrap using less. Adds dependency which uses the bootstrap version which matches the version of this module.

npm install less-bs-middleware

Exact same usage as less-middleware.

Just add a stylesheet tag that follows the same pattern as your other stylesheets.

If your stylesheet is:

link(rel='stylesheet', href='/stylesheets/style.css')

Your bootstrap stylesheet tag should be:

link(rel='stylesheet', href='/stylesheets/bootstrap.css')
app.use(require('less-bs-middleware')({ 
    src: __dirname + '/public/less',
    dest: __dirname + '/public/stylesheets',
    prefix: '/stylesheets'
}));