{"id":15061848,"url":"https://github.com/jamen/dist-css","last_synced_at":"2026-01-03T00:04:32.751Z","repository":{"id":57120108,"uuid":"108794345","full_name":"jamen/dist-css","owner":"jamen","description":"Create dist version of your CSS.","archived":false,"fork":false,"pushed_at":"2017-11-02T20:01:01.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T23:45:32.514Z","etag":null,"topics":[],"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/jamen.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":"2017-10-30T02:54:25.000Z","updated_at":"2021-12-19T15:35:17.000Z","dependencies_parsed_at":"2022-08-23T18:00:31.929Z","dependency_job_id":null,"html_url":"https://github.com/jamen/dist-css","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fdist-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fdist-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fdist-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fdist-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/dist-css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243723374,"owners_count":20337362,"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-09-24T23:25:55.076Z","updated_at":"2026-01-03T00:04:32.707Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# @jamen/dist-css\n\n\u003e Create dist version of your CSS.\n\nCombines tools for adding comptibility and optimizations to your CSS compiler's\noutput.\n\n```sh\n$ dist-css dist/app.css\n```\n\nThis will\n\n- Run `postcss` with `autoprefixer`.\n- Run `clean-css`.\n- Use sourcemaps when given input and output paths.\n\nAlso see [`@jamen/dist-js`](https://github.com/jamen/dist-js) for your JS files.\n\n## Install\n\n```sh\n$ npm i -D @jamen/dist-css\n```\n\n## Usage\n\n### `dist-css [file] [...options]`\n\nThe easiest way to use the tool is transforming a file in place:\n\n```sh\n$ dist-css dist/app.css\n```\n\nIt will also detect when you want to use stdio:\n\n```sh\n# Using stdout\n$ dist-css dist/app.css | wc -c\n6780\n\n# Using stdin\n$ echo \"* { box-sizing: border-box }\" | dist-css dist/app.css\nfinished dist-css at dist/app.css\n\n# Using both\n$ echo \"a { ... }\" | dist-css \u003e dist/app.css\n```\n\nAlternative to this, use the `--input`, `-i` and `--output`, `-o` flags, where\nif a flag is absent it uses the stdio equivalent instead.\n\nAlso note that you can only accept a sourcemap with an input path, and write a\nsourcemap with an output path.  Inline sourcemaps are not supported out of\nsimplicity.\n\nTo disable sourcemaps regardless, supply the `--no-sourcemap` flag:\n\n```sh\n$ dist-css --no-sourcemap dist/app.css\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fdist-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fdist-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fdist-css/lists"}