koa-stylus-parser

2.0.2 • Public • Published

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

Dependents (1)

Package Sidebar

Install

npm i koa-stylus-parser

Weekly Downloads

7

Version

2.0.2

License

MIT

Last publish

Collaborators

  • tree.xie