{"id":13782509,"url":"https://github.com/shff/parcel-plugin-purifycss","last_synced_at":"2025-05-11T15:32:33.243Z","repository":{"id":48021049,"uuid":"140341290","full_name":"shff/parcel-plugin-purifycss","owner":"shff","description":"Runs PurifyCSS on all CSS assets","archived":false,"fork":false,"pushed_at":"2022-12-02T23:40:03.000Z","size":69,"stargazers_count":9,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T11:55:19.785Z","etag":null,"topics":["css","frontend","parcel","purifycss"],"latest_commit_sha":null,"homepage":"","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/shff.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}},"created_at":"2018-07-09T20:55:58.000Z","updated_at":"2021-05-16T22:09:00.000Z","dependencies_parsed_at":"2023-01-22T20:46:13.389Z","dependency_job_id":null,"html_url":"https://github.com/shff/parcel-plugin-purifycss","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/shff%2Fparcel-plugin-purifycss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shff%2Fparcel-plugin-purifycss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shff%2Fparcel-plugin-purifycss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shff%2Fparcel-plugin-purifycss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shff","download_url":"https://codeload.github.com/shff/parcel-plugin-purifycss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253588747,"owners_count":21932317,"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":["css","frontend","parcel","purifycss"],"created_at":"2024-08-03T18:01:38.270Z","updated_at":"2025-05-11T15:32:32.922Z","avatar_url":"https://github.com/shff.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Other"],"readme":"**Notice:** I built a PostCSS plugin that does the exact same thing but has more configurations, that might be more appropriate than a Parcel plugin. It doesn't depend on PurifyCSS, but it works in a similar way. Check it out at [/shff/postcss-remove-unused-css](http://github.com/shff/postcss-remove-unused-css)\n\n# parcel-plugin-purifycss\n\nA Parcel plugin to remove unused rules from your bundled CSS files in production builds.\n\n## How it works\n\nThis plugin uses the [purifycss](https://github.com/purifycss/purifycss) utility to remove unused CSS rules.\n\nPurifyCSS works by reading your source files and checking which CSS selectors are mentioned in your HTML and Javascript code.\n\nThis is very useful if you're using a full-featured CSS framework like Bootstrap or Materialize, or even Atomic CSS libraries like Tachyons or BassCSS since you might not use all the provided components and helpers.\n\n## Usage\n\nJust install the plugin as a dependency using yarn or npm and build normally with Parcel. There are no configuration options.\n\nThe plugin only applies its changes to production builds. In development mode it is skipped to allow a greater speed of development.\n\n## Installation\n\n```\nyarn add parcel-plugin-purifycss\n```\n\nor\n\n```\nnpm install parcel-plugin-purifycss\n```\n\n## Issues\n\nThis plugin will look for files in your project folder with the following extensions: `html`, `js`, `jsx`, `vue` and `svelte`. Those extensions are hard-coded at the moment, but will change in the future.\n\n## License\n\n```\n\nMIT License\n\nCopyright (c) 2018 Silvio Henrique Ferreira\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshff%2Fparcel-plugin-purifycss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshff%2Fparcel-plugin-purifycss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshff%2Fparcel-plugin-purifycss/lists"}