{"id":19904322,"url":"https://github.com/alloc/vite-plugin-public","last_synced_at":"2026-06-07T01:32:07.432Z","repository":{"id":57393170,"uuid":"331416115","full_name":"alloc/vite-plugin-public","owner":"alloc","description":"Postprocessing for /public","archived":false,"fork":false,"pushed_at":"2021-01-23T18:58:20.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T23:57:37.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/alloc.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}},"created_at":"2021-01-20T19:55:34.000Z","updated_at":"2021-03-15T10:36:03.000Z","dependencies_parsed_at":"2022-09-15T02:40:39.868Z","dependency_job_id":null,"html_url":"https://github.com/alloc/vite-plugin-public","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fvite-plugin-public","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fvite-plugin-public/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fvite-plugin-public/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fvite-plugin-public/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alloc","download_url":"https://codeload.github.com/alloc/vite-plugin-public/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241331849,"owners_count":19945466,"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-11-12T20:27:52.890Z","updated_at":"2026-06-07T01:32:07.353Z","avatar_url":"https://github.com/alloc.png","language":"TypeScript","funding_links":["https://paypal.me/alecdotbiz"],"categories":[],"sub_categories":[],"readme":"# vite-plugin-public\n\n[![npm](https://img.shields.io/npm/v/vite-plugin-public.svg)](https://www.npmjs.com/package/vite-plugin-public)\n[![Code style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/alecdotbiz)\n\n\u003e Postprocessing for /public\n\n\u0026nbsp;\n\n### Usage\n\nThe `publicHash` plugin helps you add content hashes to all or some files \nfrom the `/public` directory.\n\n**Note:** This plugin depends on [#1647](https://github.com/vitejs/vite/pull/1647) and [#1675](https://github.com/vitejs/vite/pull/1675)\n\n#### Options\n\n- `ignore?: RegExp`  \n  Matching files are not hashed.\n\n- `skipRename?: boolean`  \n  Rewrite URLs but skip renaming files in `outDir`.  \n  Useful when your Vite config is loaded more than once.\n\n```ts\nimport {publicHash} from 'vite-plugin-public'\n\nexport default {\n  plugins: [\n    publicHash({\n      ignore: /^static\\//,\n    }),\n  ]\n}\n```\n\nOther plugins may be added in the future. Ideas and contributions welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Fvite-plugin-public","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falloc%2Fvite-plugin-public","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Fvite-plugin-public/lists"}