包详细信息

rework-mutate-selectors

ericf569BSD2.0.0

Mutate CSS selectors via Rework.

css, rework, selector, selectors

自述文件

Rework Mutate Selectors

Dependency Status npm Version

Mutate CSS selectors via Rework.

Usage

This package can be used directly as a Rework plugin, or via Grunt with using the companion grunt-css-selectors plugin.

Rework Plugin

var rework    = require('rework'),
    selectors = require('rework-mutate-selectors');

var css = rework(inputCSS)
    .use(selectors.prefix('.foo'))
    .use(selectors.replace(/^\.pure/g, '.bar'))
    .toString();

Grunt Plugin

This Rework plugin was originally written to be used by a Grunt task, so people using Grunt who want to mutate CSS selectors as a build task should use the companion grunt-css-selectors plugin.

The plugin is fully documented with Grunt usage examples.

License

This software is free to use under the Yahoo! Inc. BSD license. See the LICENSE file for license text and copyright information.

更新日志

Rework Mutate Selectors Change History

2.0.0 (2014-07-10)

  • Updated Rework peer dependency to v1.0.0 (#4 @kewah)

1.0.1 (2014-01-03)

  • Updated Rework peer dependency to v0.20.2.

1.0.0 (2014-01-03)

  • [!] Stable.

  • Added docs to README.

0.1.1 (2013-09-27)

  • Fixed bug where media query and keyframe selectors were not visisted. The rework-walk utility is now used to make sure those selectors are updated as well.

0.1.0 (2013-09-25)

  • Initial release.