Stylus middleware for Koa. It is koa wrapper for node-stylish.
$ npm install koa-stylish
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());
},
}));