0.0.2 • Published 8 years ago
stylus-less-plugin v0.0.2
Installation
$ npm install stylus-less-plugin
JavaScript API
Below is an example of how to utilize stylus-less and stylus with the connect framework (or express).
var connect = require('connect')
, stylus = require('stylus')
, plugin = require('stylus-less-plugin');
var server = connect();
function compile(str, path) {
return stylus(str)
.set('filename', path)
.set('compress', true)
.use(plugin());
}
server.use(stylus.middleware({
src: __dirname
, compile: compile
}));
Stylus API
To gain access to everything stylus-less has to offer, simply add:
importLess('pathTo.less')
Testing
You will first need to install the dependencies:
$ npm install -d
Run the automated test cases:
$ npm test
Contributors
Less to stylus compilation
Project skeleton from nib
- TJ Holowaychuk (Original Creator)
- Sean Lang (Current Maintainer)
- Isaac Johnston
- Everyone Else