{"id":28220890,"url":"https://github.com/morulus/react-app-rewire-postcss-config","last_synced_at":"2025-07-22T02:31:36.762Z","repository":{"id":66348137,"uuid":"109146689","full_name":"morulus/react-app-rewire-postcss-config","owner":"morulus","description":"Rewire postCss with react-app-rewire","archived":false,"fork":false,"pushed_at":"2017-11-07T00:27:59.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T09:41:19.324Z","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/morulus.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-11-01T15:10:57.000Z","updated_at":"2017-11-02T00:17:48.000Z","dependencies_parsed_at":"2023-02-25T07:30:39.115Z","dependency_job_id":null,"html_url":"https://github.com/morulus/react-app-rewire-postcss-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/morulus/react-app-rewire-postcss-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morulus%2Freact-app-rewire-postcss-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morulus%2Freact-app-rewire-postcss-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morulus%2Freact-app-rewire-postcss-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morulus%2Freact-app-rewire-postcss-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morulus","download_url":"https://codeload.github.com/morulus/react-app-rewire-postcss-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morulus%2Freact-app-rewire-postcss-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266412229,"owners_count":23924468,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2025-05-18T04:16:26.218Z","updated_at":"2025-07-22T02:31:36.737Z","avatar_url":"https://github.com/morulus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"react-app-rewire-postcss-config\n==\n\nTransform [PostCss](https://github.com/postcss/postcss) loader in a [react-app-rewired](https://github.com/timarney/react-app-rewired) config\n\n\n__Access PostCss whole loader__\n\nYou just pass a function, which accepts current PostCss loader object. And then you mutate it... No need to return result.\n\n```js\nconst rewirePostCssLoader = require('react-app-rewire-postcss-config');\n\nreturn rewirePostCssLoader((postCssLoader) =\u003e {\n  postCssLoader.options.parser = 'sugarss';\n});\n```\n\n__To transform PostCss plugins__\n\nYou pass a function, which accepts current plugins. You do something with current plugins, transforms it and then returns back.\n\n```js\nconst { rewirePostCssPlugins } = require('react-app-rewire-postcss-config');\nconst postCssNext = require('postcss-cssnext');\nconst postCssNested = require('postcss-nested');\n\nexport default rewirePostCssPlugins((currentPlugins) =\u003e {\n    return [\n      postCssNested(),\n      postCssNext(),\n    ].concat(currentPlugins);\n  })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorulus%2Freact-app-rewire-postcss-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorulus%2Freact-app-rewire-postcss-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorulus%2Freact-app-rewire-postcss-config/lists"}