{"id":19113462,"url":"https://github.com/fielding/postcss-env-replace","last_synced_at":"2026-06-12T23:33:45.448Z","repository":{"id":143061297,"uuid":"74780324","full_name":"fielding/postcss-env-replace","owner":"fielding","description":"PostCSS plugin that will replace Templates with environment-specific content","archived":false,"fork":false,"pushed_at":"2016-11-25T18:56:28.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T17:45:19.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/fielding.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-25T18:30:06.000Z","updated_at":"2024-04-10T14:07:27.000Z","dependencies_parsed_at":"2023-04-12T13:33:06.120Z","dependency_job_id":null,"html_url":"https://github.com/fielding/postcss-env-replace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fielding/postcss-env-replace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fpostcss-env-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fpostcss-env-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fpostcss-env-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fpostcss-env-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fielding","download_url":"https://codeload.github.com/fielding/postcss-env-replace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fpostcss-env-replace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34266915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2024-11-09T04:36:23.318Z","updated_at":"2026-06-12T23:33:45.429Z","avatar_url":"https://github.com/fielding.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Env Replace [![Build Status][ci-img]][ci]\n\n[PostCSS] plugin that will replace Templates with environment-specific content.\n\n[PostCSS]: https://github.com/postcss/postcss\n[ci-img]:  https://travis-ci.org/stehefan/postcss-env-replace.svg\n[ci]:      https://travis-ci.org/stehefan/postcss-env-replace\n\n```css\n.foo {\n    background-image: url(env_replace(BASE_URL)/myAwesomeImage.jpg);\n}\n```\n\n```css\n.foo {\n    background-image: url(http://localhost/myAwesomeImage.jpg);\n}\n```\n\n## Installation\n```\nnpm install postcss-env-replace --save-dev\n```\n\n## Usage\n\n```js\npostcss([ require('postcss-env-replace')({\n    environment: process.env.ENVIRONMENT || 'dev',\n    replacements: {\n        BASE_URL: {\n            prod: 'http://my.site',\n            stage: 'http://stage.my.site',\n            ci: 'http://ci.my.site',\n            dev: 'http://localhost'\n        }\n    }\n}) ])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffielding%2Fpostcss-env-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffielding%2Fpostcss-env-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffielding%2Fpostcss-env-replace/lists"}