koa.sass
v1.0.3
Published
Koa@2 middleware for processing sass
Downloads
4
Maintainers
Readme
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