{"id":19782490,"url":"https://github.com/dracotmolver/css-minify","last_synced_at":"2026-01-31T17:03:08.308Z","repository":{"id":212822433,"uuid":"89935191","full_name":"DracotMolver/css-minify","owner":"DracotMolver","description":"vscode extension to minify CSS files","archived":false,"fork":false,"pushed_at":"2021-05-23T18:26:34.000Z","size":63,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T22:05:51.800Z","etag":null,"topics":["css","css-files","css-minifier","csscompressor","vscode","vscode-extension"],"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":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DracotMolver.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2017-05-01T15:18:21.000Z","updated_at":"2020-10-07T01:24:41.000Z","dependencies_parsed_at":"2023-12-16T15:46:48.854Z","dependency_job_id":"ea55c967-e664-4942-8bd1-b3756ec6b547","html_url":"https://github.com/DracotMolver/css-minify","commit_stats":null,"previous_names":["dracotmolver/css-minify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DracotMolver/css-minify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DracotMolver%2Fcss-minify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DracotMolver%2Fcss-minify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DracotMolver%2Fcss-minify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DracotMolver%2Fcss-minify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DracotMolver","download_url":"https://codeload.github.com/DracotMolver/css-minify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DracotMolver%2Fcss-minify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28948356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["css","css-files","css-minifier","csscompressor","vscode","vscode-extension"],"created_at":"2024-11-12T06:05:20.078Z","updated_at":"2026-01-31T17:03:08.290Z","avatar_url":"https://github.com/DracotMolver.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS MINIFY\n![logo](https://github.com/DracotMolver/CSS-minify/blob/master/images/css-minify.jpg)\n\n[![Build Status](https://travis-ci.org/DracotMolver/CSS-minify.svg?branch=master)](https://travis-ci.org/DracotMolver/CSS-minify)\n[![Visual Studio Marketplace](https://img.shields.io/vscode-marketplace/d/DiegoMolina.css-minify.svg)](https://marketplace.visualstudio.com/items?itemName=DiegoMolina.css-minify)\n[![Visual Studio Marketplace](https://img.shields.io/vscode-marketplace/v/DiegoMolina.css-minify.svg)](https://marketplace.visualstudio.com/items?itemName=DiegoMolina.css-minify)\n[![license:mit](https://img.shields.io/badge/license-mit-blue.svg)](https://opensource.org/licenses/MIT)\n![Coveralls github branch](https://img.shields.io/coveralls/github/DracotMolver/css-minify/master)\n![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/DracotMolver/css-minify)\n\nThis is a very simple vscode extension. Takes your css file and minify it. It doesn't need any special configuration and it doesn't mess up your css file.\nThis tests are based on `Mocha` framework.\n\n# How to\nJust press `Ctrl|Cmd + F1|F2` and type `css minify`\n\n## Features\n\n* Removes the units from `0` values. *From `0px` to `0`*\n* Removes the `0` from any float value. *From `0.16em` to `.16em`*\n* Removes the last `;` from a closure.\n* Removes useless white spaces.\n* Reduce hexadecimals values. *From `#ffffff` to `#fff`*\n* Removes single and double quotes.\n* Replace `none` by `0`. (only in font-size-adjust, border and outline)\n\nThe extension will generate a new file with the the same name plus `min.css` and save it in the same folder of your css file you are minifying.\n\n## Be aware of how you format your code\nIf you don't format your code well the extension won't work as espected.\n\n* Don't do this\n```css\n-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);\n```\n\n* Do this\n```css\n-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),\n                    0 3px 1px -2px rgba(0, 0, 0, 0.12),\n                    0 1px 5px 0 rgba(0, 0, 0, 0.2);\n```\n\n* Don't do this\n```css\n@font-face {\n    font-family: 'pxgrotesk-regular';\n    src: url('pxgrotesk-regular.eot');\n    src: url('pxgrotesk-regular.eot?#iefix') format('embedded-opentype'), url('pxgrotesk-regular.woff2') format('woff2'), url('pxgrotesk-regular.woff') format('woff'), url('pxgrotesk-regular.ttf') format('truetype'), url('pxgrotesk-regular.svg#svgFontName') format('svg');\n}\n```\n\n* Do this\n```css\n@font-face {\n    font-family: 'pxgrotesk-regular';\n    src: url('pxgrotesk-regular.eot');\n    src: url('pxgrotesk-regular.eot?#iefix') format('embedded-opentype'),\n         url('pxgrotesk-regular.woff2') format('woff2'),\n         url('pxgrotesk-regular.woff') format('woff'),\n         url('pxgrotesk-regular.ttf') format('truetype'),\n         url('pxgrotesk-regular.svg#svgFontName') format('svg');\n}\n```\n\n* Don't do this\n```css\n.className, p \u003e div, #id {\n}\n```\n\n* Do this\n```css\n.className,\np \u003e div,\n#id {\n}\n```\n\nEnjoy it :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdracotmolver%2Fcss-minify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdracotmolver%2Fcss-minify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdracotmolver%2Fcss-minify/lists"}