0.1.1 • Published 9 years ago

koa-stylish v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

koa-stylish

Stylus middleware for Koa. It is koa wrapper for node-stylish.

Installation

$ npm install koa-stylish

Examples

Simple stylus.middleware() replacement:

app.use(stylish(__dirname + '/public'))

Extended example with autoprefixer:

var stylus = require('koa-stylish');
var autoprefixer = require('autoprefixer-stylus');

app.use(stylus({
  src: __dirname + '/public',
  setup: function(renderer) {
    return renderer.use(autoprefixer());
  },
}));
0.1.1

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago