1.0.2 • Published 9 years ago

smart-static-stylus v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

smart-static-stylus

Build Status

Stylus rendering engine for smart-static.

Usage

Using the Stylus smart-static engine plug-in is pretty easy.

var http = require('http');

var smartStatic = require('smart-static');
var stylus = require('smart-static-stylus');

var server = http.createServer(smartStatic(__dirname + '/public', {
    engines: [
    	stylus({
    		minify: true
    	})
    ]
}));

server.listen(8000);

Now .styl files in the /public folder will automatically be compiled, rendered and served as .css files.

Options

There is only one available option for the Stylus engine plug-in.

NameTypeDefaultDescription
minifyBooleantrueMinify CSS.

License

MIT

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago