broccoli-resin
Broccoli wrapped Resin - A CSS Preprocessor on top of Rework
Install
$ npm install --save broccoli-resin
Usage
var resin = require('broccoli-resin');
var rework = require('rework')
tree = resin(tree, {
browsers: ['last 1 version', 'ios', 'android 4'],
namespace: 'myapp',
license: '// Copyright 2013 and stuff \n',
debug: true,
use: [rework.prefixSelectors('#myapp')]
});
API
resin(tree, opts)
Initialize a new resin with the given string of regular CSS. Optionally supply
an object with options as the last argument.
Options
browsers
Type: Array
Default: []
This is a list defined at ai/autoprefixer#browsers.
namespace
Type: String
Default: ''
This namespace prefixes your classes on output so you can avoid collisions.
license
Type: String
Default: ''
This is just a string that gets concatenated at the top of your file.
debug
Type: Boolean
Default: False
This enables sourcemap support.
use
Type: Array
Default: []
An array of rework plugins that you'd also like to run.
License
MIT © Alex Sexton
Thanks
Heavily cargo-culted from kevva/broccoli-rework