{"id":13596449,"url":"https://github.com/t32k/grunt-csso","last_synced_at":"2025-04-07T12:10:25.915Z","repository":{"id":5043806,"uuid":"6204321","full_name":"t32k/grunt-csso","owner":"t32k","description":"Minify CSS files with CSSO.","archived":false,"fork":false,"pushed_at":"2018-11-01T18:50:20.000Z","size":152,"stargazers_count":162,"open_issues_count":1,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-31T11:03:57.185Z","etag":null,"topics":["csso"],"latest_commit_sha":null,"homepage":"http://css.github.io/csso/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mshahbazsaleem/jsShare","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t32k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-13T15:25:55.000Z","updated_at":"2024-09-21T13:22:40.000Z","dependencies_parsed_at":"2022-09-26T16:22:24.884Z","dependency_job_id":null,"html_url":"https://github.com/t32k/grunt-csso","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t32k%2Fgrunt-csso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t32k%2Fgrunt-csso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t32k%2Fgrunt-csso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t32k%2Fgrunt-csso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t32k","download_url":"https://codeload.github.com/t32k/grunt-csso/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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":["csso"],"created_at":"2024-08-01T16:02:27.172Z","updated_at":"2025-04-07T12:10:25.890Z","avatar_url":"https://github.com/t32k.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# grunt-csso [![Build Status](https://secure.travis-ci.org/t32k/grunt-csso.svg?branch=master)](http://travis-ci.org/t32k/grunt-csso) [![Dependency Status](https://david-dm.org/t32k/grunt-csso.svg)](https://david-dm.org/t32k/grunt-csso)\n\n\u003e Minify CSS files with CSSO.\n\n## CSSO task\n\nRun this task with the `grunt csso` command.\n\nTask targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.\n\nFiles are compressed with [csso](http://css.github.io/csso/).\n\n\n### Options\n\n#### restructure\n\nType: `Boolean`  \nDefault: `true`\n\nYou can turns __[structural optimizations](http://bem.info/tools/optimizers/csso/description/)__ off.\n\n#### banner\n\nType: `String`  \nDefault: `null`\n\nPrefix the compressed source with the given banner, with a linebreak inbetween.\n\n\n#### report\n\nChoices: `false`, `true`, `'min'`, `'gzip'`  \nDefault: `false`\n\nEither report only minification result or report minification and gzip results. This 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#### beforeCompress\n\nType: `(ast, options, csso) =\u003e {}`, `[(ast, options, csso) =\u003e {}]`  \nDefault: `null`\n\nAllows registering one or many `beforeCompress` functions. This is useful to add manipulate the AST before compression is made by csso.\n\n#### afterCompress\n\nType: `(ast, options, csso) =\u003e {}`, `[(ast, options, csso) =\u003e {}]`  \nDefault: `null`\n\nAllows registering one or many `afterCompress` functions. This is useful to add manipulate the AST after compression is made by csso.\n\n### Usage Examples\n\n```js\ncsso: {\n  compress: {\n    options: {\n      report: 'gzip'\n    },\n    files: {\n      'output.css': ['input.css']\n    }\n  },\n  restructure: {\n    options: {\n      restructure: false,\n      report: 'min'\n    },\n    files: {\n      'restructure.css': ['input.css']\n    }\n  },\n  banner: {\n    options: {\n      banner: '/* Copyleft */'\n    },\n    files: {\n      'banner.css': ['input.css']\n    }\n  },\n  shortcut: {\n    src: 'override.css'\n  }\n}\n```\n\n#### Minify all contents of a release directory and add a `.min.css` extension\n\n```js\ncsso: {\n  dynamic_mappings: {\n    expand: true,\n    cwd: '/css/',\n    src: ['*.css', '!*.min.css'],\n    dest: 'dest/css/',\n    ext: '.min.css'\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft32k%2Fgrunt-csso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft32k%2Fgrunt-csso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft32k%2Fgrunt-csso/lists"}