npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

broccoli-styl

1.0.0

@kevva

npmHomeRepoSnykSocket
Downloads:1
$ npm install broccoli-styl
DailyWeeklyMonthlyYearly

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