A handler for the webant module for stylus requires.
npm install webant-handler-stylus_Require stylus files with webant_
$ npm install webant-handler-stylus
Ensure the stylus handler is present in your webant configuration file. For example:
```json``
{
"entry":"src/js/main.js",
"dest":"build/main.js",
"handlers":["stylus"]
}
You may now require stylus files:
``javascript
// Get the compiled CSS.
var css = require("../path/to/styles.stylus");
// Apply the CSS to the document.
document.head.innerHTML += '';
``
See the webant module for more information.
__compress__
Can be either true or false` (default). Controls whether the compiled CSS is compressed.
Ensure phantomjs is installed and in your PATH, then run:
$ npm test