koa-simple-sass
v1.1.0
Published
koa middleware for sass
Downloads
1
Readme
Koa middleware for sass.
Install
$ npm install --save-dev koa-simple-sass
Usage
const path = require('path')
const app = require('koa')()
const sass = require('koa-simple-sass')
app.use(sass({
path: path.resolve('examples/sass')
}, {
includePaths: ['examples/sass']
/* config... */
}))
app.use(function*(next) {
this.body = 'Hello World'
})
app.listen(3000)
Examples
$ git clone https://github.com/cjg125/koa-simple-sass.git demo
$ cd demo
$ node examples/
# http://127.0.0.1:3000/