less-bs-middleware

Connect middleware for bootstrap using less.

npm install less-bs-middleware
2 downloads in the last week
10 downloads in the last month

Less Bootstrap Middleware -- Less BS

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

Installation

npm install less-bs-middleware

Usage

Exact same usage as less-middleware.

Example

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')

Express Example:

app.use(require('less-bs-middleware')({ 
    src: __dirname + '/public/less',
    dest: __dirname + '/public/stylesheets',
    prefix: '/stylesheets'
}));
npm loves you