Stylus parser middleware for Koa. It is useful for development.
$ npm install koa-stylus-parser
View the ./examples directory for working examples.
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
MIT