{"id":16348161,"url":"https://github.com/ben-eb/gulp-css-condense","last_synced_at":"2025-09-05T12:33:32.498Z","repository":{"id":25967575,"uuid":"29409514","full_name":"ben-eb/gulp-css-condense","owner":"ben-eb","description":"A gulp plugin for the CSS compressor that shows no mercy.","archived":false,"fork":false,"pushed_at":"2015-02-17T11:14:23.000Z","size":152,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-30T02:59:09.766Z","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":"Unmaintained","scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ben-eb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-17T23:34:15.000Z","updated_at":"2018-05-09T20:07:36.000Z","dependencies_parsed_at":"2022-07-12T16:08:19.340Z","dependency_job_id":null,"html_url":"https://github.com/ben-eb/gulp-css-condense","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-eb%2Fgulp-css-condense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-eb%2Fgulp-css-condense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-eb%2Fgulp-css-condense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-eb%2Fgulp-css-condense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ben-eb","download_url":"https://codeload.github.com/ben-eb/gulp-css-condense/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233670654,"owners_count":18711696,"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-10-11T00:49:34.649Z","updated_at":"2025-01-12T22:44:00.325Z","avatar_url":"https://github.com/ben-eb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [gulp][gulp]-css-condense [![Build Status](https://travis-ci.org/ben-eb/gulp-css-condense.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/gulp-css-condense.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/gulp-css-condense.svg)][deps]\n\n\u003e A gulp plugin for [the CSS compressor that shows no mercy][orig].\n\n*If you have any difficulties with the output of this plugin, please use the\n[css-condense tracker][bugs].*\n\nInstall via [npm](https://npmjs.org/package/gulp-css-condense):\n\n```\nnpm install gulp-css-condense --save-dev\n```\n\n## Example\n\n```js\nvar gulp = require('gulp');\nvar cssc = require('gulp-css-condense');\n\ngulp.task('default', function() {\n    return gulp.src('./main.css')\n        .pipe(cssc())\n        .pipe(gulp.dest('./out'));\n});\n```\n\n## Options\n\n### safe\nType: `Boolean`\n\nIf this is set to `true`, css-condense will not perform optimisations such as\nselector and declaration consolidation ([the docs have more information][docs]).\nNote that you can also choose which optimisations that you deem to be fit for\nyour build by passing them individually:\n\n```js\nvar gulp = require('gulp');\nvar cssc = require('gulp-css-condense');\n\ngulp.task('default', function() {\n    return gulp.src('./main.css')\n        .pipe(cssc({\n            consolidateViaDeclarations: true,\n            consolidateViaSelectors: false,\n            consolidateMediaQueries: true\n        }))\n        .pipe(gulp.dest('./out'));\n});\n```\n\n`options.safe` is just a convenience for specifying all of the above options as\n`false`.\n\n## Contributing\n\nPull requests are welcome. If you add functionality, then please add unit tests\nto cover it.\n\n## License\n\nMIT © Ben Briggs\n\n[bugs]: https://github.com/rstacruz/css-condense/issues\n[ci]:   https://travis-ci.org/ben-eb/gulp-css-condense\n[deps]: https://gemnasium.com/ben-eb/gulp-css-condense\n[docs]: https://github.com/rstacruz/css-condense#the-dangerous-things-it-does\n[gulp]: https://github.com/wearefractal/gulp\n[npm]:  http://badge.fury.io/js/gulp-css-condense\n[orig]: https://github.com/rstacruz/css-condense\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fben-eb%2Fgulp-css-condense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fben-eb%2Fgulp-css-condense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fben-eb%2Fgulp-css-condense/lists"}