{"id":13851955,"url":"https://github.com/gruntjs/grunt-contrib-cssmin","last_synced_at":"2025-05-14T07:08:16.681Z","repository":{"id":401298,"uuid":"5721837","full_name":"gruntjs/grunt-contrib-cssmin","owner":"gruntjs","description":"Compress CSS files.","archived":false,"fork":false,"pushed_at":"2024-07-02T05:06:57.000Z","size":803,"stargazers_count":795,"open_issues_count":27,"forks_count":136,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-05-11T01:20:49.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://gruntjs.com/","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/gruntjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-09-07T20:08:02.000Z","updated_at":"2025-03-12T14:03:27.000Z","dependencies_parsed_at":"2023-07-05T15:01:01.830Z","dependency_job_id":"6787ca1b-18bc-41b2-bdfe-72bbf133ff40","html_url":"https://github.com/gruntjs/grunt-contrib-cssmin","commit_stats":{"total_commits":200,"total_committers":39,"mean_commits":5.128205128205129,"dds":0.8,"last_synced_commit":"ec24cfd2f9e95c57ab66f96bdb028dfc6adb722a"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruntjs%2Fgrunt-contrib-cssmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruntjs%2Fgrunt-contrib-cssmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruntjs%2Fgrunt-contrib-cssmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruntjs%2Fgrunt-contrib-cssmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gruntjs","download_url":"https://codeload.github.com/gruntjs/grunt-contrib-cssmin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254092657,"owners_count":22013290,"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-08-04T22:00:50.635Z","updated_at":"2025-05-14T07:08:16.638Z","avatar_url":"https://github.com/gruntjs.png","language":"JavaScript","funding_links":[],"categories":["Minifiers - JS \u0026 CSS","JavaScript","others","Minifiers"],"sub_categories":["Meetups"],"readme":"# grunt-contrib-cssmin v4.0.0 [![Build Status](https://github.com/gruntjs/grunt-contrib-cssmin/workflows/Tests/badge.svg)](https://github.com/gruntjs/grunt-contrib-cssmin/actions?workflow=Tests)\n\n\u003e Minify CSS\n\n\n\n## Getting Started\n\nIf you haven't used [Grunt](https://gruntjs.com/) before, be sure to check out the [Getting Started](https://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](https://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-contrib-cssmin --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-contrib-cssmin');\n```\n\n**Issues with the output should be reported on the clean-css [issue tracker](https://github.com/jakubpawlowicz/clean-css/issues).**\n\n\n\n## Cssmin task\n_Run this task with the `grunt cssmin` command._\n\n\n### Options\n\nOptions are passed to [clean-css](https://github.com/jakubpawlowicz/clean-css#how-to-use-clean-css-api). In addition this task defines some extra options:\n\n\n#### report\n\nType: `string`  \nChoices: `'min'`, `'gzip'`  \nDefault: `'min'`\n\nReport minification result or both minification and gzip results.\nThis is useful to see exactly how well clean-css is performing but using `'gzip'` will make the task take 5-10x longer to complete. [Example output](https://github.com/sindresorhus/maxmin#readme).\n\n\n#### sourceMap\n\nType: `boolean`  \nChoices: `true`, `false`  \nDefault: `false`\n\nEnable Source Maps.\n\n### Usage\n\n#### Combine two files into one output file\n\n```js\ncssmin: {\n  options: {\n    mergeIntoShorthands: false,\n    roundingPrecision: -1\n  },\n  target: {\n    files: {\n      'output.css': ['foo.css', 'bar.css']\n    }\n  }\n}\n```\n\n#### Minify all contents of a release directory and add a `.min.css` extension\n\n```js\ncssmin: {\n  target: {\n    files: [{\n      expand: true,\n      cwd: 'release/css',\n      src: ['*.css', '!*.min.css'],\n      dest: 'release/css',\n      ext: '.min.css'\n    }]\n  }\n}\n```\n\n\n## Release History\n\n * 2023-05-01   v5.0.0   Update dependencies. Drop Node.js \u003c 14 support.\n * 2021-02-15   v4.0.0   Update all dependencies including clean-css v5.x. Drop Node.js \u003c 10 support.\n * 2018-09-07   v3.0.0   Update all dependencies. Drop Node.js \u003c 6 support.\n * 2017-07-27   v2.2.1   Fix issue with `relativeTo` for clean-css v4.x.\n * 2017-05-10   v2.2.0   Update clean-css to v4.1.1.\n * 2017-04-17   v2.1.0   Set required Node.js version to \u003e=4 since clean-css 4.x requires that.\n * 2017-02-02   v2.0.0   Update clean-css to v4.0.3.\n * 2016-08-31   v1.0.2   Fix issues for node 6.\n * 2016-03-16   v1.0.1   Downgrade maxmin to support Node.js 0.10.\n * 2016-03-04   v1.0.0   Updated docs. Point main to task and removed peerDeps. Update clean-css to v3.4.1.\n * 2015-09-15   v0.14.0   Bump to cssmin ~3.4.0. Minor test fixes.\n * 2015-07-27   v0.13.0   Bump to cssmin ~3.3.0.\n * 2015-05-09   v0.12.3   Improve reporting of errors and warnings. Log out written files and the saved size. Fix absolute paths.\n * 2015-02-20   v0.12.2   Set the `rebase` option to `false` by default.\n * 2015-02-09   v0.12.0   Add `sourceMap` option.\n * 2014-12-24   v0.11.0   Bump `clean-css` to 3.0.1. Remove `banner` option.\n * 2014-06-11   v0.10.0   Update clean-css v2.2.0.\n * 2014-02-01   v0.9.0   Refactor. Remove grunt-lib-contrib dependency. Backwards-compatibly remove `false` choice from `report`.\n * 2014-02-14   v0.8.0   Update clean-css v2.1.0.\n * 2013-11-23   v0.7.0   Update clean-css v2.0.0.\n * 2013-09-14   v0.6.2   Support relative URLs via clean-css ~1.1.1.\n * 2013-05-25   v0.6.1   Support import in-lining via clean-css ~1.0.4.\n * 2013-04-05   v0.6.0   Update clean-css dependency to ~1.0.0.\n * 2013-03-14   v0.5.0   Support for `report` option (false by default).\n * 2013-03-10   v0.4.2   Add `banner` option. Support clean-css `keepSpecialComments`.\n * 2013-02-17   v0.4.1   Update clean-css dependency to ~0.10.0.\n * 2013-02-15   v0.4.0   First official release for Grunt 0.4.0.\n * 2013-01-23   v0.4.0rc7   Updating grunt/gruntplugin dependencies to rc7. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.\n * 2013-01-09   v0.4.0rc5   Updating to work with grunt v0.4.0rc5. Switching to `this.files` API.\n * 2012-11-01   v0.3.2   Update clean-css dep.\n * 2012-10-12   v0.3.1   Rename grunt-contrib-lib dep to grunt-lib-contrib.\n * 2012-09-23   v0.3.0   Options no longer accepted from global config key.\n * 2012-09-10   v0.2.0   Refactored from grunt-contrib into individual repo.\n\n---\n\nTask submitted by [Tim Branyen](http://tbranyen.com/)\n\n*This is a generated file.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgruntjs%2Fgrunt-contrib-cssmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgruntjs%2Fgrunt-contrib-cssmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgruntjs%2Fgrunt-contrib-cssmin/lists"}