broccoli-styl

1.0.0 • Public • Published

broccoli-styl Build Status

Preprocess CSS with Styl

Install

$ npm install --save 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, opts)

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

Options

use

Type: Function
Default: undefined

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

Package Sidebar

Install

npm i broccoli-styl

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kevva