{"name":"postcss-discard-overridden","version":"8.0.0","keywords":["postcss","css","postcss-plugin","at-rules","@keyframes","@counter-style"],"author":{"name":"Justineo","email":"justice360@gmail.com"},"license":"MIT","_id":"postcss-discard-overridden@8.0.0","maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"justineo","email":"justice360@gmail.com"},{"name":"ludovicofischer","email":"livrerie@gmail.com"},{"name":"ai","email":"andrey@sitnik.es"},{"name":"chriseppstein","email":"chris@eppsteins.net"},{"name":"andyjansson","email":"jansson.andy@gmail.com"},{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"cssnano-bot","email":"sahaaniketh@gmail.com"}],"homepage":"https://github.com/cssnano/cssnano","bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"dist":{"shasum":"c43f8c10d65b77315ead38b0e8da054045856e6f","tarball":"http://registry-npm.ywwl.com/postcss-discard-overridden/download/postcss-discard-overridden-8.0.0.tgz","fileCount":4,"integrity":"sha512-sW2OWH3l9p0FmBSVr228uztFseqroZxwgD7SGF0Ks0dRPDttSo3P8FK5ZBLtWBH2A5+chpB0J2fB/T8heKHLBw==","signatures":[{"sig":"MEQCIA1MHhwSHN4nZtafm6tlW1txvw7AziJsnVJhux16w290AiBv92e3B0qw0EKGAAgwvxTOM1A8B1qnsdQLYasmnxtTtA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-discard-overridden@8.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6588,"size":2472,"noattachment":false,"key":"/postcss-discard-overridden/-/postcss-discard-overridden-8.0.0.tgz"},"main":"src/index.js","_from":"file:postcss-discard-overridden-8.0.0.tgz","types":"types/index.d.ts","engines":{"node":"^22.11.0 || ^24.11.0 || >=26.0"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5b6bac0b-f746-444f-8ca3-cabf2520378e"}},"_resolved":"/tmp/48beaed232597339342eaee191bf21e2/postcss-discard-overridden-8.0.0.tgz","_integrity":"sha512-sW2OWH3l9p0FmBSVr228uztFseqroZxwgD7SGF0Ks0dRPDttSo3P8FK5ZBLtWBH2A5+chpB0J2fB/T8heKHLBw==","repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"_npmVersion":"11.11.0","description":"PostCSS plugin to discard overridden @keyframes or @counter-style.","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"diff":"^9.0.0","postcss":"^8.5.14","picocolors":"^1.1.1"},"peerDependencies":{"postcss":"^8.5.14"},"_npmOperationalInternal":{"tmp":"tmp/postcss-discard-overridden_8.0.0_1778069644764_0.4336003170474314","host":"s3://npm-registry-packages-npm-production"},"readme":"# PostCSS Discard Overridden\n\n[PostCSS] plugin to discard overridden `@keyframes` or `@counter-style`.\n\n`@keyframes` or `@counter-style` will be overridden by those who share the same identifiers and appear later in stylesheets. So we can discard all of them except the last one. When defined inside a `@media` or `@supports` rule, `@keyframes` and `@counter-style` rules only override global rules in some of the client browsers so they need handled separately. This plugin has taken care of this and transforms the PostCss AST **safely**.\n\n[PostCSS]: https://github.com/postcss/postcss\n\n```css\n@-webkit-keyframes fade-in {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 0.8;\n  }\n}\n@keyframes fade-in {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 0.8;\n  }\n}\n@media (max-width: 500px) {\n  @-webkit-keyframes fade-in {\n    0% {\n      opacity: 0;\n    }\n    100% {\n      opacity: 1;\n    }\n  }\n  @keyframes fade-in {\n    0% {\n      opacity: 0;\n    }\n    100% {\n      opacity: 1;\n    }\n  }\n  @-webkit-keyframes fade-in {\n    0% {\n      opacity: 0;\n    }\n    100% {\n      opacity: 0.8;\n    }\n  }\n  @keyframes fade-in {\n    0% {\n      opacity: 0;\n    }\n    100% {\n      opacity: 0.8;\n    }\n  }\n  @supports (display: flex) {\n    @-webkit-keyframes fade-in {\n      0% {\n        opacity: 0;\n      }\n      100% {\n        opacity: 1;\n      }\n    }\n    @keyframes fade-in {\n      0% {\n        opacity: 0;\n      }\n      100% {\n        opacity: 1;\n      }\n    }\n  }\n}\n@-webkit-keyframes fade-in {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n@keyframes fade-in {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n```\n\n```css\n@media (max-width: 500px) {\n  @-webkit-keyframes fade-in {\n    0% {\n      opacity: 0;\n    }\n    100% {\n      opacity: 0.8;\n    }\n  }\n  @keyframes fade-in {\n    0% {\n      opacity: 0;\n    }\n    100% {\n      opacity: 0.8;\n    }\n  }\n  @supports (display: flex) {\n    @-webkit-keyframes fade-in {\n      0% {\n        opacity: 0;\n      }\n      100% {\n        opacity: 1;\n      }\n    }\n    @keyframes fade-in {\n      0% {\n        opacity: 0;\n      }\n      100% {\n        opacity: 1;\n      }\n    }\n  }\n}\n@-webkit-keyframes fade-in {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n@keyframes fade-in {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n```\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/main/CONTRIBUTORS.md).\n","publish_time":1778069644886,"_cnpm_publish_time":1778069644886,"dist-tags":{"latest":"9.0.6","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}