Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Preprocess CSS with Styl
JavaScript
Branch: master

Tweaks

latest commit 6123aaf82f
@kevva authored
Failed to load latest commit information.
test Tweaks
.editorconfig Tweaks
.gitattributes Initial commit
.gitignore Initial commit
.jshintrc Various tweaks
.travis.yml Various tweaks
Brocfile.js Tweaks
index.js Tweaks
license Tweaks
package.json Update dependencies
readme.md Various tweaks

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

Something went wrong with that request. Please try again.