{"name":"postcss-browser-comments","description":"Keep only the CSS you need based on comments and your browserslist","version":"7.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Jonathan Neal","email":"csstools@hotmail.com"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT-0","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":">=20.19.0"},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"}},"peerDependencies":{"browserslist":"^4.28.1","postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-browser-comments#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-browser-comments"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["browserlists","browsers","browserslists","caniuse","css","lists","postcss","postcss-plugin","support","target"],"gitHead":"8b24916b905d134e480bbe33706d3ce9cb25a416","_id":"postcss-browser-comments@7.0.0","_nodeVersion":"25.1.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-8hzvnKJiHNrEEiPwCjJuyj8KIZrm9moJzFpljFsWdeXF8raDMTyoCeg79TJ3W9c4gT0bNOXhJuTyws4H+j0ksw==","shasum":"919c1a2019fa493e0761e2ff02b75411c9f4d63c","tarball":"http://registry-npm.ywwl.com/postcss-browser-comments/download/postcss-browser-comments-7.0.0.tgz","fileCount":6,"unpackedSize":6715,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHCW5B1rsLU3NmVxJuVtX4iIWITznqVhP/iifrIHAfb+AiAt6D7O7r/dp6N4mBESimt4KpIWibVbT7Ol2WSe8lIqaQ=="}],"size":3196,"noattachment":false,"key":"/postcss-browser-comments/-/postcss-browser-comments-7.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-browser-comments_7.0.0_1768375294902_0.24654319814738468"},"_hasShrinkwrap":false,"readme":"# PostCSS Browser Comments [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n`npm install postcss-browser-comments --save-dev`\n\n[PostCSS Browser Comments] lets you keep only the CSS you need based on\ncomments and your [browserslist](https://github.com/browserslist/browserslist).\n\n\n```css\n/**\n * Prevent adjustments of font size after orientation changes in IE and iOS.\n */\n\nhtml {\n  -ms-text-size-adjust: 100%;\n  -webkit-text-size-adjust: 100%;\n}\n\n/* becomes */\n\n\n```\n\nThe comment and rule above would be removed with the following browserslist:\n\n```yml\nlast 2 chrome versions\n```\n\nThe rule below would be more carefully altered:\n\n```css\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n  box-sizing: content-box; /* 1 */\n  height: 0; /* 1 */\n  overflow: visible; /* 2 */\n}\n\n/* with a `last 2 firefox versions` browserslist becomes */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n  box-sizing: content-box; /* 1 */\n  height: 0; /* 1 */\n}\n```\n\n## Usage\n\nAdd [PostCSS Browser Comments] to your project:\n\n```bash\nnpm install postcss postcss-browser-comments --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssBrowserComments = require('postcss-browser-comments');\n\npostcss([\n\tpostcssBrowserComments(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n\n\n## Options\n\n### browsers\n\nThe `browsers` option overrides of the project’s browserslist.\n\n```js\npostcssBrowserComments({ browsers: 'last 2 versions' })\n```\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/postcss-browser-comments\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Browser Comments]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-browser-comments\n","publish_time":1768375295038,"_cnpm_publish_time":1768375295038,"dist-tags":{"latest":"7.0.0"}}