{"name":"postcss-merge-rules","version":"9.1.1","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.1.1","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":"9d6566d515710b93e273dc5ff03e6f269f48eeea","tarball":"http://registry-npm.ywwl.com/postcss-merge-rules/download/postcss-merge-rules-9.1.1.tgz","fileCount":88,"integrity":"sha512-GIvTG7eN1gc935kWgPCSIhetZBNakmVWKF1eA0GZ4GPy+WAN+Glz69BlTdN7xHykq5EYenSlO2DRjbA8MEY0oA==","signatures":[{"sig":"MEQCICDzOmx7jgrc/gvh5I3sCTTmqCQC3qlRjKOMxMhdjO9sAiBjZdqPGVEmxFA/qpIGEUi5xMfZLKLLfPMa47rM2SHSHQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIFjnhwnsMnkt4a8saqbZpmkXgW22aP++ym8C+y/On8e9AiEAsl9uxPLO+UsJg24yGkNdkILT250ZqWcFDcBb7rST66g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-merge-rules@9.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":241479,"size":57407,"noattachment":false,"key":"/postcss-merge-rules/-/postcss-merge-rules-9.1.1.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.2.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.1.1_1791198827460_0.10641424566344715","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":1791198827564,"_cnpm_publish_time":1791198827564,"dist-tags":{"latest":"9.1.5","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}