connect-stylus

1.0.0 • Public • Published

connect-stylus

Yet another connect/express middleware for Stylus. Don't ask me why.

Installation

This packages defines stylus as a peer dependency, that means you should install your preferred version of stylus yourself:

% npm install stylus connect-stylus

Usage

Use with your connect or express app like this:

var stylus = require('connect-stylus'),
    express = require('express');

var app = express();
app.get('/styles.css', stylus({
  entry: './public/styles.styl',
  use: ['nib', 'normalize']
}));

connect-stylus starts watching directory for changes unless you pass {watch: false} as an option.

If you want to configure Stylus rendering, you can pass a function which does that as configure option.

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i connect-stylus

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • andreypopp
    • alexgorbatchev