{"id":15511490,"url":"https://github.com/focus-shift/snowpack-plugin-cache-bust","last_synced_at":"2025-10-12T08:31:37.965Z","repository":{"id":39575687,"uuid":"315075625","full_name":"focus-shift/snowpack-plugin-cache-bust","owner":"focus-shift","description":"This snowpack plugin adds a content hash to your referenced scripts and stylesheets in html files.","archived":true,"fork":false,"pushed_at":"2022-09-14T20:38:16.000Z","size":136,"stargazers_count":3,"open_issues_count":8,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-02T09:53:45.832Z","etag":null,"topics":["snowpack"],"latest_commit_sha":null,"homepage":"","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/focus-shift.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":"2020-11-22T15:59:43.000Z","updated_at":"2023-01-27T21:15:13.000Z","dependencies_parsed_at":"2022-09-04T09:40:38.562Z","dependency_job_id":null,"html_url":"https://github.com/focus-shift/snowpack-plugin-cache-bust","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focus-shift%2Fsnowpack-plugin-cache-bust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focus-shift%2Fsnowpack-plugin-cache-bust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focus-shift%2Fsnowpack-plugin-cache-bust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focus-shift%2Fsnowpack-plugin-cache-bust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/focus-shift","download_url":"https://codeload.github.com/focus-shift/snowpack-plugin-cache-bust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236188313,"owners_count":19109389,"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":["snowpack"],"created_at":"2024-10-02T09:53:04.134Z","updated_at":"2025-10-12T08:31:32.660Z","avatar_url":"https://github.com/focus-shift.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003e **Update (April 20, 2022):** Snowpack is no longer actively maintained and is not recommended for new projects.\n\u003e\n\u003e Check out [Vite](https://vitejs.dev/) for a well-maintained Snowpack alternative.  \n\u003e See also: [esbuild](https://esbuild.github.io/), [parcel](https://parceljs.org/)\n\n# snowpack-plugin-cache-bust\n\nThis [snowpack](https://www.snowpack.dev) plugin adds a content hash to your referenced scripts and stylesheets in html files.\nThe hash is created on `optimize` command. So this won't interfere developing with watch mode.\n\n## Usage\n\nCurrently there is no published artifact in the npm registry. You have to add this plugin via github url.\n\n```json\n// package.json\n{\n  \"devDependencies\": {\n    \"snowpack-plugin-cache-bust\": \"https://github.com/focus-shift/snowpack-plugin-cache-bust.git#\u003cVERSION_TAG\u003e\"\n  }\n}\n```\n\n```js\n// snowpack.config.js\n{\n  plugins: [\n    \"snowpack-plugin-cache-bust\"\n  ],\n}\n```\n\n### Example\n\n```html\n\u003clink rel=\"stylesheet\" href=\"/css/style.css\" /\u003e\n\u003cscript src=\"/js/app.js\"\u003e\u003c/script\u003e\n```\n\nwill become\n\n```html\n\u003clink rel=\"stylesheet\" href=\"/css/style-12345.css\" /\u003e\n\u003cscript src=\"/js/app-abcdefg.js\"\u003e\u003c/script\u003e\n```\n\n### Plugin options\n\n`snowpack-plugin-cache-bust` can be configured with following options:\n\n```js\n// snowpack.config.js\n{\n  plugins: [\n    [\"snowpack-plugin-cache-bust\", options]\n  ],\n}\n```\n\n| Name       | Type      | Description                                                                                                                                                                                         |\n| :--------- | :-------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `netflify` | `boolean` | (_default: false_) Set this to `true` if you want a `_header` file to be created that enables [cache-control](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control) for netlify. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffocus-shift%2Fsnowpack-plugin-cache-bust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffocus-shift%2Fsnowpack-plugin-cache-bust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffocus-shift%2Fsnowpack-plugin-cache-bust/lists"}