{"id":32303768,"url":"https://github.com/ajlai/postcss_transformer.dart","last_synced_at":"2026-02-20T22:02:09.168Z","repository":{"id":56837125,"uuid":"45333710","full_name":"ajlai/postcss_transformer.dart","owner":"ajlai","description":"Dart transformer using PostCSS for asset transformation","archived":false,"fork":false,"pushed_at":"2016-07-13T21:20:12.000Z","size":204,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-20T22:56:31.559Z","etag":null,"topics":["css","dart","postcss"],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/ajlai.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}},"created_at":"2015-11-01T09:49:06.000Z","updated_at":"2019-07-23T13:33:35.000Z","dependencies_parsed_at":"2022-09-06T22:30:35.849Z","dependency_job_id":null,"html_url":"https://github.com/ajlai/postcss_transformer.dart","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"purl":"pkg:github/ajlai/postcss_transformer.dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajlai%2Fpostcss_transformer.dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajlai%2Fpostcss_transformer.dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajlai%2Fpostcss_transformer.dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajlai%2Fpostcss_transformer.dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajlai","download_url":"https://codeload.github.com/ajlai/postcss_transformer.dart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajlai%2Fpostcss_transformer.dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280570610,"owners_count":26352978,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","dart","postcss"],"created_at":"2025-10-23T06:07:32.245Z","updated_at":"2025-10-23T06:07:35.317Z","avatar_url":"https://github.com/ajlai.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss_transformer.dart [![Build Status](https://travis-ci.org/ajlai/postcss_transformer.dart.svg?branch=master)](https://travis-ci.org/ajlai/postcss_transformer.dart)\nhttp://pub.dartlang.org/packages/postcss_transformer\n\n[Dart transformer](https://www.dartlang.org/tools/pub/glossary.html#transformer) wrapping [PostCSS](https://github.com/postcss/postcss).\n\nAllows for easy hooking in of [PostCSS plugins](http://postcss.parts/) (ie autoprefixer) into the build process of a dart project.\n\n## Requirements\nMust have installed `postcss`, `postcss-cli` and postcss plugins (ie `autoprefixer`) via npm.\n\n## Usage\nAdd `postcss_transformer` to dependencies and transformers in your `pubspec.yaml`:\n```yaml\nname: postcss_transformer_example\ndependencies:\n  postcss_transformer: any\ntransformers:\n- postcss_transformer:\n    arguments:\n    - use: autoprefixer\n    - autoprefixer.browsers: Firefox 38, Safari 9\n```\nSee `example/` folder for what a basic dart project using postcss_transformer would look like.\n\n## Configuration\n### `arguments` (REQUIRED)\nList of key-value pairs passed in as arguments to the postcss command. Use `use` key to configure which plugins run and the order they run in. You can also pass in config parameters for the plugins similar to [how they are passed in postcss-cli](https://github.com/code42day/postcss-cli#examples).\n\nFor example, the following arguments\n```yaml\narguments:\n  - use: autoprefixer\n  - autoprefixer.browsers: \u003e 5%\n  - use: postcss-cachify\n  - postcss-cachify.baseUrl: /res\n```\nend up turning into the command\n```\npostcss --use autoprefixer --autoprefixer.browsers '\u003e 5%' \\\n        --use postcss-cachify --postcss-cachify.baseUrl /res\n```\n\nSee postcss-cli [documentation](https://github.com/code42day/postcss-cli#usage) for more details.\n### `executable` (OPTIONAL, default: `postcss`)\nPath to postcss executable\n### `input_extension` (OPTIONAL, default: `.css`)\nextension for transformer input files\n### `output_extension` (OPTIONAL)\nextension for transformer output files. If not set then transformer will use `input_extension`.\n\n## Credits\npostcss_transformer was very much inspired by [autoprefixer_transformer](https://github.com/localvoid/autoprefixer_transformer) and how incredibly easy it was to set up.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajlai%2Fpostcss_transformer.dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajlai%2Fpostcss_transformer.dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajlai%2Fpostcss_transformer.dart/lists"}