{"id":13759429,"url":"https://github.com/FullHuman/purgecss-with-wordpress","last_synced_at":"2025-05-10T09:32:30.162Z","repository":{"id":66070813,"uuid":"121115247","full_name":"FullHuman/purgecss-with-wordpress","owner":"FullHuman","description":"Purgecss with wordpress","archived":true,"fork":false,"pushed_at":"2019-10-22T20:31:11.000Z","size":11,"stargazers_count":29,"open_issues_count":0,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-27T02:02:56.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FullHuman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-11T11:10:24.000Z","updated_at":"2023-06-10T06:01:46.000Z","dependencies_parsed_at":"2023-02-20T19:30:53.828Z","dependency_job_id":null,"html_url":"https://github.com/FullHuman/purgecss-with-wordpress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullHuman%2Fpurgecss-with-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullHuman%2Fpurgecss-with-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullHuman%2Fpurgecss-with-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullHuman%2Fpurgecss-with-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FullHuman","download_url":"https://codeload.github.com/FullHuman/purgecss-with-wordpress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253397142,"owners_count":21902001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T13:00:53.034Z","updated_at":"2025-05-10T09:32:29.916Z","avatar_url":"https://github.com/FullHuman.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Purgecss with Wordpress\n\n\nBased on the [gist](https://gist.github.com/frnwtr/5647673bb15ca8893642469d3b400cba) made by @frnwtr, `purgecss-with-wordpress` is a set of templates for\nWordpress CMS.\n\n## Getting Started\n\n#### Installation\n\nYou need to install [purgecss](https://github.com/FullHuman/purgecss) first.\n\nInstall `purgecss-with-wordpress`:\n```sh\nnpm i --save-dev purgecss-with-wordpress\n```\n\n## Usage\n\n```js\n\nimport Purgecss from 'purgecss'\nimport purgecssWordpress from 'purgecss-with-wordpress'\n\nconst purgeCss = new Purgecss({\n  content: ['**/*.html'],\n  css: ['**/*.css'],\n  whitelist: purgecssWordpress.whitelist,\n  whitelistPatterns: purgecssWordpress.whitelistPatterns\n})\nconst result = purgecss.purge()\n```\n\nIf you have additional classes you want to include in either of the `whitelist` or `whitelistPatterns`, you can include them using the spread operator:\n\n```js\nwhitelist: [\n  ...purgecssWordpress.whitelist,\n  'red',\n  'blue',\n],\nwhitelistPatterns: [\n  ...purgecssWordpress.whitelistPatterns,\n  /^red/,\n  /blue$/,\n]\n```\n\n## Versioning\n\nPurgecss-with-wordpress use [SemVer](http://semver.org/) for versioning.\n\n## Acknowledgment\n\nPurgecss-with-wordpress is based on the [gist](https://gist.github.com/frnwtr/5647673bb15ca8893642469d3b400cba) made by @frnwtr\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file\nfor details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFullHuman%2Fpurgecss-with-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFullHuman%2Fpurgecss-with-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFullHuman%2Fpurgecss-with-wordpress/lists"}