{"id":19511680,"url":"https://github.com/alex-ketch/metalsmith-purifycss","last_synced_at":"2025-04-26T03:32:36.574Z","repository":{"id":46820600,"uuid":"91204787","full_name":"alex-ketch/metalsmith-purifycss","owner":"alex-ketch","description":"PurifyCSS plugin for Metalsmith static site generator","archived":false,"fork":false,"pushed_at":"2022-12-06T21:30:38.000Z","size":116,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-17T13:37:42.759Z","etag":null,"topics":["css","metalsmith","metalsmith-plugin","purifycss"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alex-ketch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-13T21:51:07.000Z","updated_at":"2023-02-10T23:00:45.000Z","dependencies_parsed_at":"2023-01-23T16:16:19.030Z","dependency_job_id":null,"html_url":"https://github.com/alex-ketch/metalsmith-purifycss","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-ketch%2Fmetalsmith-purifycss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-ketch%2Fmetalsmith-purifycss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-ketch%2Fmetalsmith-purifycss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-ketch%2Fmetalsmith-purifycss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex-ketch","download_url":"https://codeload.github.com/alex-ketch/metalsmith-purifycss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250926949,"owners_count":21509059,"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","metalsmith","metalsmith-plugin","purifycss"],"created_at":"2024-11-10T23:22:14.306Z","updated_at":"2025-04-26T03:32:36.279Z","avatar_url":"https://github.com/alex-ketch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metalsmith PurifyCSS\n\n[![Build Status](https://travis-ci.org/alex-ketch/metalsmith-purifycss.svg?branch=master)](https://travis-ci.org/alex-ketch/metalsmith-purifycss)\n\nThis is a [Metalsmith](http://www.metalsmith.io) plugin for [PurifyCSS](https://github.com/purifycss/purifycss).\n\n---\n\n## Installation\nTo install run:\n```js\nnpm install metalsmith-purifycss --save-dev\n```\n\nor if you're using [Yarn](https://yarnpkg.com)\n```js\nyarn add metalsmith-purifycss --dev\n```\n\n---\n## Usage\n\nThe API interface is [mostly the same](https://github.com/purifycss/purifycss#api-in-depth) as PurifyCSS.\n\n### Additional options:\n\n| Key              | Type    | Description                                                |  \n| :--------------- | :------ | :--------------------------------------------------------- |  \n| `removeOriginal` | boolean | Removes files matched by the `css` option from the output. |  \n\n\nThis is the simplest setup:\n```js\nconst purifyCSS = require('metalsmith-purifycss');\n\nMetalsmith()\n  // ... Compile CSS/HTML/JavaScript\n  .use(purifyCSS({\n    content: ['*.html', '*.js'],\n    css: ['styles.css'],\n    output: 'styles-purified.css',\n  }))\n  .build((err, files) =\u003e {\n    if (err) throw new err;\n  });\n});\n```\n\nNote that if you'd like to overwrite the original CSS file, set the `output`\nname to match the `css` filename.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-ketch%2Fmetalsmith-purifycss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-ketch%2Fmetalsmith-purifycss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-ketch%2Fmetalsmith-purifycss/lists"}