{"id":13827839,"url":"https://github.com/less/less-plugin-clean-css","last_synced_at":"2025-04-13T02:00:13.237Z","repository":{"id":20568806,"uuid":"23849093","full_name":"less/less-plugin-clean-css","owner":"less","description":"Post-process and compress CSS using clean-css.","archived":false,"fork":false,"pushed_at":"2025-02-20T11:45:28.000Z","size":95,"stargazers_count":192,"open_issues_count":11,"forks_count":41,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-06T00:05:30.978Z","etag":null,"topics":["less-plugin"],"latest_commit_sha":null,"homepage":"http://lesscss.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/less.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":"2014-09-09T20:31:01.000Z","updated_at":"2025-03-07T19:39:32.000Z","dependencies_parsed_at":"2023-12-03T23:35:26.388Z","dependency_job_id":"d831e642-16ab-4eea-9f3d-cb1cab08cd80","html_url":"https://github.com/less/less-plugin-clean-css","commit_stats":{"total_commits":48,"total_committers":10,"mean_commits":4.8,"dds":0.4375,"last_synced_commit":"b2c3886b7af67ab45a5568e7758bbc2d5b82b112"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/less%2Fless-plugin-clean-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/less%2Fless-plugin-clean-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/less%2Fless-plugin-clean-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/less%2Fless-plugin-clean-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/less","download_url":"https://codeload.github.com/less/less-plugin-clean-css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261960,"owners_count":21074229,"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":["less-plugin"],"created_at":"2024-08-04T09:02:14.478Z","updated_at":"2025-04-13T02:00:13.183Z","avatar_url":"https://github.com/less.png","language":"JavaScript","funding_links":[],"categories":["Hacking on Font Awesome","JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/less/less-plugin-clean-css/actions?query=branch%3Amaster\"\u003e\u003cimg src=\"https://github.com/less/less-plugin-clean-css/actions/workflows/build.yml/badge.svg?branch=master\" alt=\"Github Actions CI\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmtrends.com/less-plugin-clean-css\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/less-plugin-clean-css.svg?sanitize=true\" alt=\"Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/less-plugin-clean-css\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/less-plugin-clean-css.svg?sanitize=true\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# less-plugin-clean-css\n\nCompresses the css output from less using [clean-css](https://github.com/jakubpawlowicz/clean-css).\n\n## lessc usage\n\nFirst of all install less via\n\n```bash\nnpm install -g less\n```\n\nthen install the `less-plugin-clean-css`\n\n```bash\nnpm install -g less-plugin-clean-css\n```\n\nand then on the command line,\n\n```bash\nlessc file.less --clean-css=\"--s1 --advanced --compatibility=ie8\"\n```\n\nSee [clean-css](https://github.com/jakubpawlowicz/clean-css/tree/v3.0.1#how-to-use-clean-css-programmatically) for the\navailable command options - the only differences are `advanced` and `rebase` which we default to false, because it is\nnot always entirely safe.\n\n## Programmatic usage\n\n```js\nvar LessPluginCleanCSS = require('less-plugin-clean-css'),\n    cleanCSSPlugin = new LessPluginCleanCSS({advanced: true});\nless.render(lessString, {plugins: [cleanCSSPlugin]})\n    .then(\n```\n\n## Browser usage\n\nBrowser usage is not supported at this time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fless%2Fless-plugin-clean-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fless%2Fless-plugin-clean-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fless%2Fless-plugin-clean-css/lists"}