broccoli-styl

Preprocess CSS with Styl

Usage no npm install needed!

<script type="module">
  import broccoliStyl from 'https://cdn.skypack.dev/broccoli-styl';
</script>

README

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