{"id":24819017,"url":"https://github.com/nitive/postcss-extract","last_synced_at":"2025-03-25T20:37:32.991Z","repository":{"id":57327991,"uuid":"52658458","full_name":"Nitive/postcss-extract","owner":"Nitive","description":"PostCSS plugin to extract css inside @at-rules into separate files","archived":false,"fork":false,"pushed_at":"2017-01-28T18:53:32.000Z","size":46,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T04:17:00.796Z","etag":null,"topics":[],"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/Nitive.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"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":"2016-02-27T08:59:10.000Z","updated_at":"2022-02-24T15:19:30.000Z","dependencies_parsed_at":"2022-09-18T17:50:27.089Z","dependency_job_id":null,"html_url":"https://github.com/Nitive/postcss-extract","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fpostcss-extract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fpostcss-extract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fpostcss-extract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fpostcss-extract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nitive","download_url":"https://codeload.github.com/Nitive/postcss-extract/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245541354,"owners_count":20632293,"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":"2025-01-30T17:55:56.228Z","updated_at":"2025-03-25T20:37:32.940Z","avatar_url":"https://github.com/Nitive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Extract [![Build Status][ci-img]][ci] [![codecov.io][codecov-img]][codecov]\n\n[PostCSS] plugin to extract css inside @at-rules into separate files.\n\n[PostCSS]:     https://github.com/postcss/postcss\n[ci-img]:      https://travis-ci.org/Nitive/postcss-extract.svg\n[ci]:          https://travis-ci.org/Nitive/postcss-extract\n[codecov-img]: https://codecov.io/github/Nitive/postcss-extract/coverage.svg?branch=master\n[codecov]:     https://codecov.io/github/Nitive/postcss-extract?branch=master\n\n```css\n.foo {\n  @critical {\n    height: 40px;\n  }\n  text-decoration: underline;\n}\n\n@critical {\n  .bar {\n    background-color: tomato;\n  }\n}\n```\n\nstyles.css\n```css\n.foo {\n  text-decoration: underline;\n}\n```\n\nextracted.css\n```css\n.foo {\n  height: 40px;\n}\n.bar {\n  background-color: tomato;\n}\n```\n\n## Usage\n\n```js\npostcss([\n  require('postcss-extract')({\n    extract: {\n      // keys are @at-rules, values are files to extract @at-rules content\n      critical: path.join(__dirname, './relative/path/to/file.css')\n    }\n  })\n])\n```\n\nSee [PostCSS] docs for examples for your environment.\n\n## [License](/LICENSE)\nMIT © [Maxim Samoilov](http://twitter.com/_nitive)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitive%2Fpostcss-extract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitive%2Fpostcss-extract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitive%2Fpostcss-extract/lists"}