{"name":"postcss-merge-rules","version":"9.0.5","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.5","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":"fcd6f676e37c174bd5bdca0c3e835c80961af485","tarball":"http://registry-npm.ywwl.com/postcss-merge-rules/download/postcss-merge-rules-9.0.5.tgz","fileCount":37,"integrity":"sha512-YDY9nXY8yxoiKpth8+Z1s8NO7BM+vNMM0nYHCxMYFu38X08/967VrAYBec/BpTmzxvn2p+y0nU+kAKaD6OIVAA==","signatures":[{"sig":"MEYCIQD7ZcQ12jkdD1OfQLs5flmbmhwow7rgv0nh/EMX5uuHhQIhAOZNQ2+2JeIlHx096ALCesOxqVzOwjcL3Sj0zPcyB6iB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQChpqsAG+JC4lPhhf5XO38J1IHNlWNrmhwthSoXB3TM5wIgQRN9htYNYc/L/lMKWGO+3o2pJ3/1oziAH+Sym+0t3g0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-merge-rules@9.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":136791,"size":29392,"noattachment":false,"key":"/postcss-merge-rules/-/postcss-merge-rules-9.0.5.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.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc: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.1","cssnano-utils":"^8.0.0","@csstools/css-tokenizer":"^4.0.2"},"_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.4"},"peerDependencies":{"postcss":"^8.5.28"},"_npmOperationalInternal":{"tmp":"tmp/postcss-merge-rules_9.0.5_1790534222701_0.20035219757935563","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":1790534222790,"_cnpm_publish_time":1790534222790,"dist-tags":{"latest":"9.1.5","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}