How to use the rework.properties function in rework

To help you get started, we’ve selected a few rework examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tj / styl / index.js View on Github external
/**
 * Module dependencies.
 */

var whitespace = require('css-whitespace');
var mixins = require('rework-mixins');
var rework = require('rework');
var props = rework.properties;

/**
 * Expose `Style`.
 */

module.exports = Style;

/**
 * Initialize a new Style with the given css `str`.
 *
 * Options:
 *
 *  - `whitespace` utilize css whitespace transformations
 *  - `compress` enable output compression
 *
 * @param {String} str
github tj / styl / styl.js View on Github external
require.register("styl/index.js", function(exports, require, module){

/**
 * Module dependencies.
 */

var whitespace = require('css-whitespace');
var mixins = require('rework-mixins');
var rework = require('rework');
var props = rework.properties;

/**
 * Expose `Style`.
 */

module.exports = Style;

/**
 * Initialize a new Style with the given css `str`.
 *
 * Options:
 *
 *  - `whitespace` utilize css whitespace transformations
 *  - `compress` enable output compression
 *
 * @param {String} str