{"id":22092214,"url":"https://github.com/pirxpilot/postcss-cachify","last_synced_at":"2025-07-24T20:32:08.318Z","repository":{"id":28397651,"uuid":"31911941","full_name":"pirxpilot/postcss-cachify","owner":"pirxpilot","description":"PostCSS plugin to replace assets urls with cachified versions.","archived":false,"fork":false,"pushed_at":"2023-10-17T19:50:53.000Z","size":27,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-11T11:30:14.879Z","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/pirxpilot.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-03-09T17:14:59.000Z","updated_at":"2022-05-14T16:50:23.000Z","dependencies_parsed_at":"2022-09-17T13:51:02.352Z","dependency_job_id":null,"html_url":"https://github.com/pirxpilot/postcss-cachify","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fpostcss-cachify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fpostcss-cachify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fpostcss-cachify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fpostcss-cachify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pirxpilot","download_url":"https://codeload.github.com/pirxpilot/postcss-cachify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227476143,"owners_count":17779417,"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-12-01T03:08:46.169Z","updated_at":"2024-12-01T03:08:46.888Z","avatar_url":"https://github.com/pirxpilot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version][npm-image]][npm-url]\n[![Build Status][build-image]][build-url]\n[![Dependency Status][deps-image]][deps-url]\n\n# PostCSS Cachify\n\n[PostCSS] plugin to replace assets urls with cachified versions. Companion for [connect-cachify-static] - rewritten URLs allow for long cache expiration and reliable cache busting for resources referenced in CSS files.\n\n\n```css\n.cachified-relative {\n  background-image: url('/image.png');\n}\n\n.cachified-absolute {\n  background-image: url('image.png');\n}\n```\n\n```css\n.cachified-relative {\n  background-image: url('/97ea519347/image.png');\n}\n\n.cachified-absolute {\n  background-image: url('/97ea519347/image.png');\n}\n```\n\n## Options\n\n- `baseUrl` - defaults to `/` - used to convert relative URLs to absolute URLs\n- `basePath` - location of files that will be cachified - defaults to current working directory\n- `match` - regular expression used to filter out files that will be considered for cachifying - defaults to `/\\.(svg|eot|woff|ttf|png|gif|jpg)$/`\n- `format` - `name`, `path` or function converting `path` and `hash` prefix into cachified name - defaults to `path`\n\n## Usage\n\n```js\npostcss([ require('postcss-cachify') ]);\n```\n\nSee [PostCSS] docs for examples for your environment.\n\n[PostCSS]: https://github.com/postcss/postcss\n[connect-cachify-static]: https://github.com/pirxpilot/connect-cachify-static\n\n[npm-image]: https://img.shields.io/npm/v/postcss-cachify\n[npm-url]: https://npmjs.org/package/postcss-cachify\n\n[build-url]: https://github.com/pirxpilot/postcss-cachify/actions/workflows/check.yaml\n[build-image]: https://img.shields.io/github/actions/workflow/status/pirxpilot/postcss-cachify/check.yaml?branch=main\n \n[deps-image]: https://img.shields.io/librariesio/release/npm/postcss-cachify\n[deps-url]: https://libraries.io/npm/postcss-cachify\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirxpilot%2Fpostcss-cachify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpirxpilot%2Fpostcss-cachify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirxpilot%2Fpostcss-cachify/lists"}