koa.sass
Koa@2 middleware for processing sass
Last updated 4 years ago by clthck .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install koa.sass 
SYNC missed versions from official npm registry.

koa.sass

Koa@2 middleware for processing sass files, integrated with koa-mount and koa-static.

Install

npm i --save koa.sass

Usage Example

const Koa = require('koa');
const serveSass = require('koa.sass');
const mount = require('koa-mount');
const serveStatic = require('koa-static');

const app = new Koa();

app.use(serveSass({
  mountAt: '/assets',
  src: './app/assets/stylesheets',
  dest: './.tmp/stylesheets',
  importPaths: ['./node_modules']
});
app.use(mount('/assets', serveStatic('./node_modules')));
app.use(mount('/assets', serveStatic('./app/assets/javascripts')));

app.listen(3000);

License

MIT

Current Tags

  • 1.0.3                                ...           latest (4 years ago)

4 Versions

  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (5)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |