#node-sass-middleware
Connect middleware for node-sass
Install
npm install node-sass-middlware
Usage
Recompile .scss
files automatically for connect and express based http servers
var connect = require('connect')
var sassMiddleware = require('node-sass-middleware')
var server = connect.createServer(
sassMiddleware({
src: __dirname
, dest: __dirname + '/public'
, debug: true
, outputStyle: 'compressed'
, prefix: '/prefix'
}),
connect.static('/prefix', __dirname + '/public')
);
Heavily inspired by https://github.com/LearnBoost/stylus
Example App
There is an example connect app here: https://github.com/andrew/node-sass-example
Contributors
We <3 our contributors! A special thanks to all those who have clocked in some dev time on this project, we really appreciate your hard work. You can find a full list of those people here.
Note on Patches/Pull Requests
- Fork the project.
- Make your feature addition or bug fix.
- Add documentation if necessary.
- Add tests for it. This is important so I don't break it in a future version unintentionally.
- Send a pull request. Bonus points for topic branches.
Copyright
Copyright (c) 2013 Andrew Nesbitt. See LICENSE for details.