{"name":"postcss-discard-unused","version":"7.0.7","keywords":["css","minify","optimise","postcss","postcss-plugin","unused"],"author":{"url":"http://beneb.info","name":"Ben Briggs","email":"beneb.info@gmail.com"},"license":"MIT","_id":"postcss-discard-unused@7.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":"3df4031e70c208db5a36fe3c7246db330aeebaa2","tarball":"http://registry-npm.ywwl.com/postcss-discard-unused/download/postcss-discard-unused-7.0.7.tgz","fileCount":6,"integrity":"sha512-h6pZqLfX9kcNbyt8zIGUU8B1rFNcucYKJhTtVn2rA6UAWk0rvE9AHhBP4D2m3Fm9+LjA++tKzG71oHlv7/6glQ==","signatures":[{"sig":"MEUCIDcpoSrOCQmVMxZttzalPP03stwqqT3AFV7KwOHrEf3XAiEA+SSLLWgTVkNaLM0qUXzTh1r+zYbh3qK/I/dFtBmA2SQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-discard-unused@7.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11366,"size":3912,"noattachment":false,"key":"/postcss-discard-unused/-/postcss-discard-unused-7.0.7.tgz"},"main":"src/index.js","_from":"file:postcss-discard-unused-7.0.7.tgz","types":"types/index.d.ts","engines":{"node":"^18.12.0 || ^20.9.0 || >=22.0"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:ca1be532-825a-4fee-b438-0242f3a4a3e6"}},"_resolved":"/tmp/82163d9fd8607bdc19a78d038c145a72/postcss-discard-unused-7.0.7.tgz","_integrity":"sha512-h6pZqLfX9kcNbyt8zIGUU8B1rFNcucYKJhTtVn2rA6UAWk0rvE9AHhBP4D2m3Fm9+LjA++tKzG71oHlv7/6glQ==","repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"_npmVersion":"11.11.0","description":"Discard unused counter styles, keyframes and fonts.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"postcss-selector-parser":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"postcss":"^8.5.13"},"peerDependencies":{"postcss":"^8.5.13"},"_npmOperationalInternal":{"tmp":"tmp/postcss-discard-unused_7.0.7_1777739721988_0.8118539472772643","host":"s3://npm-registry-packages-npm-production"},"readme":"# [postcss][postcss]-discard-unused\n\n> Discard unused counter styles, keyframes and fonts.\n\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-discard-unused) do:\n\n```\nnpm install postcss-discard-unused --save\n```\n\n\n## Example\n\nThis module will discard unused at rules in your CSS file, if it cannot find\nany selectors that make use of them. It works on `@counter-style`, `@keyframes`\nand `@font-face`.\n\n### Input\n\n```css\n@counter-style custom {\n    system: extends decimal;\n    suffix: \"> \"\n}\n\n@counter-style custom2 {\n    system: extends decimal;\n    suffix: \"| \"\n}\n\na {\n    list-style: custom\n}\n```\n\n### Output\n\n```css\n@counter-style custom {\n    system: extends decimal;\n    suffix: \"> \"\n}\n\na {\n    list-style: custom\n}\n```\n\nNote that this plugin is not responsible for normalising font families, as it\nmakes the assumption that you will write your font names consistently, such that\nit considers these two declarations differently:\n\n```css\nh1 {\n    font-family: \"Helvetica Neue\"\n}\n\nh2 {\n    font-family: Helvetica Neue\n}\n```\n\nHowever, you can mitigate this by including [postcss-minify-font-values][mfv]\n*before* this plugin, which will take care of normalising quotes, and\ndeduplicating. For more examples, see the [tests](test).\n\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n\n## API\n\n### discardUnused([options])\n\n#### options\n\n##### fontFace\n\nType: `boolean`  \nDefault: `true`\n\nPass `false` to disable discarding unused font face rules.\n\n##### counterStyle\n\nType: `boolean`  \nDefault: `true`\n\nPass `false` to disable discarding unused counter style rules.\n\n##### keyframes\n\nType: `boolean`  \nDefault: `true`\n\nPass `false` to disable discarding unused keyframe rules.\n\n##### namespace\n\nType: `boolean`  \nDefault: `true`\n\nPass `false` to disable discarding unused namespace rules.\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\n[postcss]: https://github.com/postcss/postcss\n[mfv]:     https://github.com/trysound/postcss-minify-font-values\n","publish_time":1777739722130,"_cnpm_publish_time":1777739722130,"dist-tags":{"latest":"9.0.7","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}