Preprocess CSS with Styl
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
Brocfile.js
index.js
license
package.json
readme.md

readme.md

broccoli-styl Build Status

Preprocess CSS with Styl

Install

$ npm install --save-dev broccoli-styl

Usage

var calc = require('rework-calc');
var styl = require('broccoli-styl');

tree = styl(tree, {
	use: function (css) {
		css.use(calc);
	}
});

API

styl(tree, options)

Initialize a new styl with the given string of regular CSS or whitespace-significant style CSS.

options.use(css)

Type: function

Accepts a function that gives you the ability to interact with styl before compiling. Useful for adding on plugins, etc.

whitespace

Type: boolean
Default: false

Utilize CSS whitespace transformations.

License

MIT © Kevin Mårtensson