{"id":17472603,"url":"https://github.com/shinnn/broccoli-clean-css","last_synced_at":"2025-06-26T01:36:29.515Z","repository":{"id":14423113,"uuid":"17134194","full_name":"shinnn/broccoli-clean-css","owner":"shinnn","description":"A Broccoli plugin to minify CSS with clean-css","archived":false,"fork":false,"pushed_at":"2020-10-28T23:32:53.000Z","size":160,"stargazers_count":13,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T21:01:29.319Z","etag":null,"topics":["broccoli","broccoli-plugin","clean-css","css","javascript","minification","nodejs","optimization","stylesheet"],"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/shinnn.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":"2014-02-24T11:35:37.000Z","updated_at":"2024-07-01T19:25:20.000Z","dependencies_parsed_at":"2022-08-29T05:32:03.130Z","dependency_job_id":null,"html_url":"https://github.com/shinnn/broccoli-clean-css","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fbroccoli-clean-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fbroccoli-clean-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fbroccoli-clean-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fbroccoli-clean-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinnn","download_url":"https://codeload.github.com/shinnn/broccoli-clean-css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247862108,"owners_count":21008633,"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":["broccoli","broccoli-plugin","clean-css","css","javascript","minification","nodejs","optimization","stylesheet"],"created_at":"2024-10-18T17:28:44.937Z","updated_at":"2025-04-09T22:53:44.150Z","avatar_url":"https://github.com/shinnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# broccoli-clean-css\n\n[![npm version](https://img.shields.io/npm/v/broccoli-clean-css.svg)](https://www.npmjs.com/package/broccoli-clean-css)\n[![Build Status](https://travis-ci.com/shinnn/broccoli-clean-css.svg?branch=master)](https://travis-ci.com/shinnn/broccoli-clean-css)\n[![codecov](https://codecov.io/gh/shinnn/broccoli-clean-css/branch/master/graph/badge.svg)](https://codecov.io/gh/shinnn/broccoli-clean-css)\n\nA [Broccoli](https://github.com/broccolijs/broccoli) plugin to minify CSS with [clean-css](https://github.com/jakubpawlowicz/clean-css)\n\n```css\na {\n  color: #ff0000;\n}\n\nb {\n  /* nothing */\n}\n```\n\n↓\n\n```css\na{color:red}\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install --save-dev broccoli-clean-css\n```\n\n## API\n\n```javascript\nconst BroccoliCleanCss = require('broccoli-clean-css');\n```\n\n### class BroccoliCleanCss(*node* [, *options*])\n\n*node*: `string` (directory path) or `Object` ([Broccoli node](https://github.com/broccolijs/broccoli/blob/master/docs/node-api.md#part-2-node-api-specification))  \n*options*: `Object` ([clean-css constructor options](https://github.com/jakubpawlowicz/clean-css#constructor-options))\n\n```javascript\n//Brocfile.js\nconst BroccoliCleanCss = require('broccoli-clean-css');\n\nmodule.exports = new BroccoliCleanCss('path/to/styles');\n```\n\nThere are some differences from the original [clean-css](https://www.npmjs.com/package/clean-css):\n\n* `returnPromise` option defaults to `true` and cannot be disabled.\n* All problems that clean-css considers as *warnings*, for example broken CSS syntax, are regarded as errors.\n\n## License\n\nCopyright (c) 2014 - 2019 [Watanabe Shinnosuke](https://github.com/shinnn)\n\nLicensed under [the MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fbroccoli-clean-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinnn%2Fbroccoli-clean-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fbroccoli-clean-css/lists"}