{"name":"@fullhuman/postcss-purgecss","version":"1.2.0","description":"PostCSS plugin for PurgeCSS","main":"./lib/postcss-purgecss.js","module":"./lib/postcss-purgecss.es.js","jsnext:main":"./lib/postcss-purgecss.es.js","directories":{"lib":"lib","test":"__tests__","example":"examples"},"keywords":["postcss","postcss-plugin","remove","unused","css","purgecss"],"author":{"name":"FoundrySH","email":"no-reply@foundry.sh"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/FullHuman/postcss-purgecss.git"},"bugs":{"url":"https://github.com/FullHuman/postcss-purgecss/issues"},"homepage":"https://github.com/FullHuman/postcss-purgecss","dependencies":{"postcss":"^7.0.14","purgecss":"^1.3.0"},"devDependencies":{"@babel/core":"^7.4.3","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/preset-env":"^7.4.3","@babel/preset-flow":"^7.0.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.0","codacy-coverage":"^3.4.0","eslint":"^5.16.0","eslint-plugin-flowtype":"^3.6.1","flow-bin":"^0.97.0","jest":"^24.7.0","prettier":"^1.17.0","rollup":"^1.10.1","rollup-plugin-babel":"^4.3.2","rollup-plugin-flow":"^1.1.1","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-resolve":"^4.2.3"},"scripts":{"test":"npx jest __tests__/.+.test.js","dev":"rollup -c rollup.config.js -w","build":"rollup -c rollup.config.js","lint":"npx eslint -c .eslintrc src/","flow":"npx flow","prettier":"npx prettier --write --write --tab-width 4 --no-semi --single-quote '{src,__{tests,mocks}__}/**/*.js'"},"gitHead":"f9c8bad39c84c791bfc354271326f1e981b61019","_id":"@fullhuman/postcss-purgecss@1.2.0","_nodeVersion":"10.9.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-An05jbnZVUrX+VVNniaNQtOuo/S7tyQu5x86itXTF+7kfMaGxglFGykFX2KCt2hcbJijbvfCval9IkPO19V1KA==","shasum":"a3207a0e1812f8b56fa49fba5796a1020f2756a8","tarball":"http://registry-npm.ywwl.com/@fullhuman/postcss-purgecss/download/@fullhuman/postcss-purgecss-1.2.0.tgz","fileCount":20,"unpackedSize":25339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcvGNQCRA9TVsSAnZWagAALFcP/0JqUieA95SgARafwrsX\nqrQDTl++3Ac501OrNy29dOFoQv42htQ5oJwnQlkP1whkEtci+kBBYvdgnM1F\nTf46CyTX7X503A6lgkI93Gmp0ZpTjmUxm5WxdR17h+mmoBMgvTMXjHGi7JrW\n0PFbAtG3TRDgLjFFgwRNVTzg/MqZQjqJ2qDGBp+QjOhYen6DlrYWoQ4VzIAJ\nx0QlWUx5gkUU2iw636CnHQJDqUWCHgq2uIK18F6FGEGrP/afr5rQBU7Nc5Vn\n1QMIbPdriBldOHwJlAeZQ71Rw0nHT/t/W9ay1I+aN8in4UR/vv9POE1ruPXH\nCrhrDBWUYiYPHnoUQw2BoHTqWakMLfzUK3fgHZMb0VRupmDvMSx+Ta4af3dh\nNH7dK0siroJouznIRa5nQV434hXcHIS02lW2ReyQpecT+O93YOE+dWpxO5mM\nHw1tRKRk/k3aJMZLC+rMSr+OTiSTLceztduTSS3MMn5l/UDCYVijwYf072F7\ngP9OoVIbdxgiaw9cH7bKxzb3imOUTgP8rAFE0s1gvPkVPx6z+Y0ZWW45DYIK\noYPreXTmmAecWa+ZeeNMv2y1IbTKnxlkJ9aYSi0ATU33W3/DpeTYiXfqtiGr\ndoq5mQyiTLlYvy7+arSQR7S+2H+Oqpzb0DLksJtw67QRJ+K9cUHBSKaJusF5\n0Rf7\r\n=Q5fp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDuWy/p349PObje76ggYYYu0r2cLET/a4y3UgngUQEUAiEAmmX/I0ph7QZ+Gp7pGGNbwhUCUSICtt6YxOgWM7EGQO4="}],"size":7920,"noattachment":false,"key":"/@fullhuman/postcss-purgecss/-/@fullhuman/postcss-purgecss-1.2.0.tgz"},"maintainers":[{"name":"ffloriel","email":"ffloriel.dev@gmail.com"},{"name":"jsnanigans","email":"megamaaaan@gmail.com"}],"_npmUser":{"name":"ffloriel","email":"ffloriel.dev@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-purgecss_1.2.0_1555850064128_0.4153761786242067"},"_hasShrinkwrap":false,"readme":"# PostCSS Purgecss\n![David (path)](https://img.shields.io/david/FullHuman/purgecss?path=packages%2Fpostcss-purgecss&style=for-the-badge)\n![Dependabot](https://img.shields.io/badge/dependabot-enabled-%23024ea4?style=for-the-badge)\n![npm](https://img.shields.io/npm/v/@fullhuman/postcss-purgecss?style=for-the-badge)\n![npm](https://img.shields.io/npm/dw/@fullhuman/postcss-purgecss?style=for-the-badge)\n![GitHub](https://img.shields.io/github/license/FullHuman/purgecss?style=for-the-badge)\n\n[PostCSS] plugin for PurgeCSS.\n\n[PostCSS]: https://github.com/postcss/postcss\n\n## Installation\n\n```\nnpm i -D @fullhuman/postcss-purgecss postcss\n```\n\n## Usage\n\n```js\nconst purgecss = require('@fullhuman/postcss-purgecss')\npostcss([\n  purgecss({\n    content: ['./src/**/*.html']\n  })\n])\n```\n\nSee [PostCSS] docs for examples for your environment.\n\n## Options\n\nAll of the options of purgecss are available to use with the plugins.\nYou will find below the main options available. For the complete list, go to the [purgecss documentation website](https://www.purgecss.com/configuration.html#options).\n\n### `content` (**required** or use `contentFunction` instead)\nType: `Array<string>`\n\nYou can specify content that should be analyzed by Purgecss with an array of filenames or globs. The files can be HTML, Pug, Blade, etc.\n\n### `contentFunction` (as alternative to `content`)\nType: `(sourceInputFile: string) => Array<string>`\n\nThe function receives the current source input file. With this you may provide a specific array of globs for each input. E.g. for \nan angular application only scan the components template counterpart for every component scss file:\n\n```js\npurgecss({\n  contentFunction: (sourceInputFileName: string) => {\n    if (/component\\.scss$/.test(sourceInputFileName))\n      return [sourceInputFileName.replace(/scss$/, 'html')]\n    else\n      return ['./src/**/*.html']\n  },\n})\n```\n\n### `extractors`\nType: `Array<Object>`\n\nPurgecss can be adapted to suit your needs. If you notice a lot of unused CSS is not being removed, you might want to use a custom extractor.\nMore information about extractors [here](https://www.purgecss.com/extractors.html).\n\n### `safelist`\n\nYou can indicate which selectors are safe to leave in the final CSS. This can be accomplished with the option `safelist`.\n\nTwo forms are available for this option.\n\n```ts\nsafelist: ['random', 'yep', 'button', /^nav-/]\n```\n\nIn this form, safelist is an array that can take a string or a regex.\n\nThe _complex_ form is:\n\n```ts\nsafelist: {\n    standard: ['random', 'yep', 'button', /^nav-/],\n    deep: [],\n    greedy: [],\n    keyframes: [],\n    variables: []\n}\n```\n\n### `blocklist`\n\nBlocklist will block the CSS selectors from appearing in the final output CSS. The selectors will be removed even when they are seen as used by PurgeCSS.\n\n```ts\nblocklist: ['usedClass', /^nav-/]\n```\nEven if nav-links and usedClass are found by an extractor, they will be removed.\n\n### `skippedContentGlobs`\n\nIf you provide globs for the `content` parameter, you can use this option to exclude certain files or folders that would otherwise be scanned. Pass an array of globs matching items that should be excluded. (Note: this option has no effect if `content` is not globs.)\n\n```ts\nskippedContentGlobs: ['node_modules/**', 'components/**']\n```\nHere, PurgeCSS will not scan anything in the \"node_modules\" and \"components\" folders.\n\n\n### `rejected`\nType: `boolean`\nDefault value: `false`\n\nIf true, purged selectors will be captured and rendered as PostCSS messages.\nUse with a PostCSS reporter plugin like [`postcss-reporter`](https://github.com/postcss/postcss-reporter)\nto print the purged selectors to the console as they are processed.\n\n### `keyframes`\nType: `boolean`\nDefault value: `false`\n\nIf you are using a CSS animation library such as animate.css, you can remove unused keyframes by setting the keyframes option to true.\n\n#### `fontFace`\nType: `boolean`\nDefault value: `false`\n\nIf there are any unused @font-face rules in your css, you can remove them by setting the fontFace option to true.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](./../../CONTRIBUTING.md) for details on our code of\nconduct, and the process for submitting pull requests to us.\n\n## Versioning\n\npostcss-purgecss use [SemVer](http://semver.org/) for versioning.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](./../../LICENSE) file\nfor details.\n","publish_time":1555850064234,"_cnpm_publish_time":1555850064234,"dist-tags":{"latest":"8.0.0","next":"6.0.0-alpha.0"}}