{"name":"postcss-merge-rules","version":"9.0.7","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.7","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":"ff006f815209e6cde9d1480954c130f0770923d3","tarball":"http://registry-npm.ywwl.com/postcss-merge-rules/download/postcss-merge-rules-9.0.7.tgz","fileCount":46,"integrity":"sha512-FGZhuSWCJTMFrPb+3QiVSI6WLoFIbyL5o8+nhlNvKg5rrUGdHVor26xG+ttQjPhlB7Ysv/ONj0F8oBLvIO5iOQ==","signatures":[{"sig":"MEUCIFk2Cazz6tSYzwh4Bt8z1YmlSpHsUGgPu4tDVzdDmbocAiEAjsH7TYHadoqWA4+BfxB1D8lwEJrhTi89VX1Q5axCs7A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDBsHEJBWvk/8cLRqELrrLKAQpa2AulDyyNIvQtlrQj/AIgJMSIN90uKDN33sy/7eX8QuNL68Weoiav1U2PX+0cKXA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-merge-rules@9.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150736,"size":33043,"noattachment":false,"key":"/postcss-merge-rules/-/postcss-merge-rules-9.0.7.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.0.2","@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.7_1790944705553_0.6929398437176357","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":1790944705639,"_cnpm_publish_time":1790944705639,"dist-tags":{"latest":"9.1.5","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}