{"name":"postcss-discard-duplicates","version":"9.0.6","keywords":["css","dedupe","optimise","postcss","postcss-plugin"],"author":{"url":"https://beneb.info","name":"Ben Briggs","email":"beneb.info@gmail.com"},"license":"MIT","_id":"postcss-discard-duplicates@9.0.6","maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"trysound","email":"opensource@trysound.io"},{"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":"563f990c705afa4b67336fa06f16b454a0a39080","tarball":"http://registry-npm.ywwl.com/postcss-discard-duplicates/download/postcss-discard-duplicates-9.0.6.tgz","fileCount":6,"integrity":"sha512-YPsUgxZ4OepCttAaixZQ4/VP2DE7vuf5936R+HFda+qgB+mzWNwUI+ghGendy3YLH5WDYS/BbPJbJAsjVd8Sfg==","signatures":[{"sig":"MEQCIGNYkOwZXu5WiCwaLfdq343ztddJyFHLlNPNUuLo1Z+NAiAuDUYPCYDWZoGFNjJi2qXS9W7V7C3pr9D1PXgRma0yZQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIHzfWa6W0EO+xZnjM5A1MX0+3xbIpVPPhpI5xc8Vi/7sAiAns5AjyjiaU4Nk+X48+ZCQUzBAjkLAyaeBp4swSMvDGA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-discard-duplicates@9.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14770,"size":5113,"noattachment":false,"key":"/postcss-discard-duplicates/-/postcss-discard-duplicates-9.0.6.tgz"},"main":"./src/index.js","type":"module","types":"./types/index.d.ts","engines":{"node":"^22.22.3 || ^24.15.0 || >=26.0"},"exports":{".":{"types":"./types/index.d.ts","default":"./src/index.js"},"./package.json":"./package.json"},"scripts":{"test":"node --test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"fbdbb99b-d55c-462c-bb5d-79f9263d3720"}},"repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"description":"Discard duplicate rules in your CSS files with PostCSS.","directories":{},"dependencies":{"cssnano-utils":"^8.2.1"},"_hasShrinkwrap":false,"devDependencies":{"postcss":"^8.5.29"},"peerDependencies":{"postcss":"^8.5.29"},"_npmOperationalInternal":{"tmp":"tmp/postcss-discard-duplicates_9.0.6_1791476089671_0.8294428567318279","host":"s3://npm-registry-packages-npm-production"},"readme":"# [postcss][postcss]-discard-duplicates\n\n> Discard duplicate rules in your CSS files with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-discard-duplicates) do:\n\n```\nnpm install postcss-discard-duplicates --save\n```\n\n## Example\n\nThis module will remove all duplicate rules from your stylesheets. It works on\nat rules, normal rules and declarations. Note that this module does not have any\nresponsibility for normalising declarations, selectors or whitespace, so that it\nconsiders these two rules to be different:\n\n```css\nh1, h2 {\n    color: blue;\n}\n\nh2, h1 {\n    color: blue;\n}\n```\n\nIt has to assume that your rules have already been transformed by another\nprocessor, otherwise it would be responsible for too many things.\n\n### Input\n\n```css\nh1 {\n    margin: 0 auto;\n    margin: 0 auto\n}\n\nh1 {\n    margin: 0 auto\n}\n```\n\n### Output\n\n```css\nh1 {\n    margin: 0 auto\n}\n```\n\n### Sibling conditional blocks\n\nThe module removes a declaration from an earlier `@media`, `@supports`,\n`@container` or named `@layer` block when a later sibling block with\nthe same name and parameters repeats it.\nThe module keeps a `@layer` block, even if it is empty,\nbecause the first appearance of a layer determines the layer order.\nFor the same reason it keeps every `@import`, since the imported style sheet\nmay declare layers.\n\n```css\n@media (min-width: 768px) {\n    .a { top: 0 }\n    .b { color: red }\n}\n\n@media (min-width: 768px) {\n    .a { top: 0 }\n}\n```\n\nbecomes\n\n```css\n@media (min-width: 768px) {\n    .b { color: red }\n}\n\n@media (min-width: 768px) {\n    .a { top: 0 }\n}\n```\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/main/CONTRIBUTORS.md).\n\n\n## License\n\nMIT © [Ben Briggs](https://beneb.info)\n\n\n[postcss]: https://github.com/postcss/postcss\n","publish_time":1791476089761,"_cnpm_publish_time":1791476089761,"dist-tags":{"latest":"9.0.7","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}