{"name":"postcss-merge-rules","version":"9.0.8","keywords":["css","optimise","postcss","postcss-plugin"],"author":{"url":"https://beneb.info","name":"Ben Briggs","email":"beneb.info@gmail.com"},"license":"MIT","_id":"postcss-merge-rules@9.0.8","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":"d923340235678ac11fc313f9ca43e34c352fd8ef","tarball":"http://registry-npm.ywwl.com/postcss-merge-rules/download/postcss-merge-rules-9.0.8.tgz","fileCount":46,"integrity":"sha512-kp14dE0AlXwd69pcfU6VWG9G6pCPK11OWJqlb3/ccoO9CRKGVsqiHOq/hpkAm4scYzuo3ZMYQs1E0O7c2K8SSA==","signatures":[{"sig":"MEYCIQCvux9FlBaHaRAxQAgNkzF/vHPjLo4nPUKd7OPLMTysqQIhANcbS+kJEp2nrVgcRmFf58vpl2EHgf23IGY9utd5BpxN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGxE4+vOODSJyboHJbv4g54zM5XYSJH1Y+I6qI6r45SxAiEA3Dl3rn4ZcF27chcdjvSH4cwgLrjIR9bGzhjqbiXSU+0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-merge-rules@9.0.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":146770,"size":32612,"noattachment":false,"key":"/postcss-merge-rules/-/postcss-merge-rules-9.0.8.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"},"imports":{"#getBrowsersList":{"node":"./src/lib/computeBrowsersToSupport.js","default":"./src/lib/getBrowsersForWebBuild.js"}},"scripts":{"fuzz":"node ./script/fuzz.js","test":"node --test","acquire":"node ./script/acquire.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"287b21ba-7bd9-49bd-8954-16b9f3a399ff"}},"repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"description":"Merge CSS rules with PostCSS.","directories":{},"dependencies":{"caniuse-api":"^4.0.0","browserslist":"^4.29.3","cssnano-utils":"^8.1.0","@csstools/css-tokenizer":"^4.0.2","postcss-minify-selectors":"^9.0.6"},"_hasShrinkwrap":false,"devDependencies":{"postcss":"^8.5.28","@webref/css":"8.7.5","postcss-simple-vars":"^7.0.1","postcss-selector-parser":"^7.1.5","postcss-discard-comments":"^9.0.6"},"peerDependencies":{"postcss":"^8.5.28"},"_npmOperationalInternal":{"tmp":"tmp/postcss-merge-rules_9.0.8_1791060172259_0.843469743240324","host":"s3://npm-registry-packages-npm-production"},"readme":"# [postcss][postcss]-merge-rules\n\n> Merge CSS rules with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-merge-rules) do:\n\n```\nnpm install postcss-merge-rules --save\n```\n\n## Examples\n\nThis module will attempt to merge adjacent CSS rules, rules with the same selector, or `@media`, `@supports` or `@container` blocks with the same condition that are separated only by unrelated rules: \n\n### By declarations\n\n#### Input\n\n```css\na {\n    color: blue;\n    font-weight: bold\n}\n\np {\n    color: blue;\n    font-weight: bold\n}\n```\n\n#### Output\n\n```css\na,p {\n    color: blue;\n    font-weight: bold\n}\n```\n\n### By selectors\n\n#### Input\n\n```css\na {\n    color: blue\n}\n\na {\n    font-weight: bold\n}\n```\n\n#### Output\n\n```css\na {\n    color: blue;\n    font-weight: bold\n}\n```\n\nUnrelated rules between the two merged rules are left in place. A rule that sets a property a\nlater rule also sets stops the merge, because the cascade order would change.\n\n#### Input\n\n```css\na {\n    color: blue\n}\n\np {\n    margin: 0\n}\n\na {\n    font-weight: bold\n}\n```\n\n#### Output\n\n```css\na {\n    color: blue;\n    font-weight: bold\n}\n\np {\n    margin: 0\n}\n```\n\n### By partial declarations\n\n#### Input\n\n```css\na {\n    font-weight: bold\n}\n\np {\n    color: blue;\n    font-weight: bold\n}\n```\n\n#### Output\n\n```css\na,p {\n    font-weight: bold\n}\n\np {\n    color: blue\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\n## License\n\nMIT © [Ben Briggs](https://beneb.info)\n\n[postcss]: https://github.com/postcss/postcss\n","publish_time":1791060172353,"_cnpm_publish_time":1791060172353,"dist-tags":{"latest":"9.1.5","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}