rework-deduplicate

0.1.1 • Public • Published

rework-deduplicate

BuildStatus Rework plugin to remove duplicate class definitions

Install

npm i --save

Usage

var rework = require('rework'),
    dedupe = require('rework-deduplicate'),
    read = require('fs').readFileSync,
    output;

    output = rework(read('path/to/source.css', 'utf8'))
        .use(dedupe());

Example

Input:

.button {
    background: black;
}
.button {
    background: red;
}
.button {
    background: black;
}

Output:

.button {
    background: black;
}
.button {
    background: red;
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    4
  • 0.1.0
    13
  • 0.0.1
    2

Package Sidebar

Install

npm i rework-deduplicate

Weekly Downloads

6

Version

0.1.1

License

MIT

Last publish

Collaborators

  • dam