Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

sindresorhus/broccoli-stylus

Repository files navigation

Deprecated

The Stylus project is no longer maintained.


broccoli-stylus Build Status

Compile Stylus

Issues with the output should be reported on the Stylus issue tracker.

Install

$ npm install --save-dev broccoli-stylus

Usage

var stylus = require('broccoli-stylus');
tree = stylus(tree, options);

API

stylus(tree, [options])

options

Type: array

Paths to scan for @import directives when parsing.

Type: array

Pass in Stylus plugins to be used during compilation.

Type: array

Defer importing of the given paths until evaluation is performed.

Type: array

Will use iterate over the values and call stylus.define(value, stylus.url()); for each iteration.

Type: object

Set some settings.

Type: object

Define global variables that will be accessible in Stylus files.

License

MIT © Sindre Sorhus