postcss-merge-idents
Merge keyframe and counter style identifiers.
Last updated 2 years ago by ai .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install postcss-merge-idents 
SYNC missed versions from official npm registry.

postcss-merge-idents

Merge keyframe and counter style identifiers.

Install

With npm do:

npm install postcss-merge-idents --save

Example

This module will merge identifiers such as @keyframes and @counter-style, if their properties are identical. Then, it will update those declarations that depend on the duplicated property.

Input

@keyframes rotate {
    from { transform: rotate(0) }
    to { transform: rotate(360deg) }
}

@keyframes flip {
    from { transform: rotate(0) }
    to { transform: rotate(360deg) }
}

.rotate {
    animation-name: rotate
}

.flip {
    animation-name: flip
}

Output

@keyframes flip {
    from { transform: rotate(0) }
    to { transform: rotate(360deg) }
}

.rotate {
    animation-name: flip
}

.flip {
    animation-name: flip
}

Usage

See the PostCSS documentation for examples for your environment.

Contributors

See CONTRIBUTORS.md.

License

MIT © Ben Briggs

Current Tags

  • 4.0.1                                ...           latest (2 years ago)
  • 4.0.0-rc.2                                ...           next (3 years ago)
  • 4.0.0-nightly.2020.1.11                                ...           nightly (14 days ago)

32 Versions

  • 4.0.0-nightly.2020.1.11                                ...           14 days ago
  • 4.0.0-nightly.2020.1.9                                ...           16 days ago
  • 4.0.0-nightly.2020.10.20                                ...           3 months ago
  • 4.0.0-nightly.2020.9.9                                ...           5 months ago
  • 4.0.0-nightly.2020.9.3                                ...           5 months ago
  • 4.0.0-nightly.2020.9.1                                ...           5 months ago
  • 4.0.0-nightly.2020.8.29                                ...           5 months ago
  • 4.0.0-nightly.2020.8.25                                ...           5 months ago
  • 4.0.0-nightly.2020.8.24                                ...           5 months ago
  • 4.0.0-nightly.2020.8.17                                ...           5 months ago
  • 4.0.0-nightly.2020.8.10                                ...           6 months ago
  • 4.0.0-nightly.2020.8.4                                ...           6 months ago
  • 4.0.0-nightly.2020.8.1                                ...           6 months ago
  • 4.0.0-nightly.2020.7.31                                ...           6 months ago
  • 4.0.0-nightly.2020.7.25                                ...           6 months ago
  • 4.0.0-nightly.2020.7.24                                ...           6 months ago
  • 4.0.1                                ...           2 years ago
  • 4.0.0                                ...           3 years ago
  • 4.0.0-rc.2                                ...           3 years ago
  • 4.0.0-rc.0                                ...           4 years ago
  • 2.1.7                                ...           4 years ago
  • 2.1.6                                ...           5 years ago
  • 2.1.5                                ...           5 years ago
  • 2.1.4                                ...           5 years ago
  • 2.1.3                                ...           5 years ago
  • 2.1.2                                ...           5 years ago
  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago

Copyright 2014 - 2017 © taobao.org |