{"id":21915876,"url":"https://github.com/ljpengelen/lein-hash-assets","last_synced_at":"2025-09-08T07:32:32.909Z","repository":{"id":89406838,"uuid":"434733251","full_name":"ljpengelen/lein-hash-assets","owner":"ljpengelen","description":"A Leiningen plugin that adds hashes to the filenames of your static assets and inserts those in your index.html","archived":false,"fork":false,"pushed_at":"2022-02-01T20:35:10.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T09:30:26.423Z","etag":null,"topics":["clojure","leiningen-plugin"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/ljpengelen.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":"2021-12-03T21:04:42.000Z","updated_at":"2022-01-23T10:45:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a61d2ae-a168-4561-b703-51b45c4bb4f4","html_url":"https://github.com/ljpengelen/lein-hash-assets","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ljpengelen/lein-hash-assets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljpengelen%2Flein-hash-assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljpengelen%2Flein-hash-assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljpengelen%2Flein-hash-assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljpengelen%2Flein-hash-assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljpengelen","download_url":"https://codeload.github.com/ljpengelen/lein-hash-assets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljpengelen%2Flein-hash-assets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274152220,"owners_count":25231288,"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-09-08T02:00:09.813Z","response_time":121,"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":["clojure","leiningen-plugin"],"created_at":"2024-11-28T19:14:40.259Z","updated_at":"2025-09-08T07:32:32.896Z","avatar_url":"https://github.com/ljpengelen.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lein-hash-assets\n\nA Leiningen plugin that\n1. adds md5 hashes to the filenames of your static assets and\n1. uses these filenames in your `index.html`.\n\nThis allows you to permit caching of your static assets, without the risk of users ever seeing outdated versions due to caching.\nDo not allow caching of `index.html` itself, however.\n\n## Usage\n\nFirst, put `[com.github.ljpengelen/lein-hash-assets \"x.y.z\"]` into the `:plugins` vector of your `project.clj`.\nThe latest version is shown in the badge below.\n\n[![Clojars Project](https://img.shields.io/clojars/v/com.github.ljpengelen/lein-hash-assets.svg)](https://clojars.org/com.github.ljpengelen/lein-hash-assets)\n\nSecond, add a configuration of the following form to your `project.clj`:\n\n```\n:hash-assets {:source-root \"resources/public\"\n              :target-root \"dist\"\n              :index \"index.html\"\n              :files [\"css/screen.css\" \"js/compiled/app.js\"]}\n```\n\nThen, execute the following command:\n\n    $ lein hash-assets\n\nFor the given configuration, this will calculate the md5 hashes of `resources/public/css/screen.css` and `resources/public/js/compiled/app.js`, and save copies of these files with the corresponding hashes in their filename as `dist/css/screen-\u003chash\u003e.css` and `dist/js/compiled/app-\u003chash\u003e.js`.\nAdditionally, it will copy `resources/public/index.html` into `dist/index.html`, with all references to the original files replaced by their renamed counterparts.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljpengelen%2Flein-hash-assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljpengelen%2Flein-hash-assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljpengelen%2Flein-hash-assets/lists"}