node package manager

koa-stylus-parser

koa-stylus-parser

Build Status Coverage Status npm Github Releases

Stylus parser middleware for Koa. It is useful for development.

Installation

$ npm install koa-stylus-parser

Examples

View the ./examples directory for working examples.

API

const parser = require('koa-stylus-parser');
const Koa = require('koa');
const app = new Koa();
app.use(parser(path.join(__dirname, '../assets'), {
  'include css': true,
  }));
 
app.listen(8080);
  • assetsPath the assets path

  • options the options for stylus

License

MIT