{"id":21194671,"url":"https://github.com/devetek/caddyserver-minifier","last_synced_at":"2025-08-04T21:40:30.128Z","repository":{"id":217543382,"uuid":"744064497","full_name":"devetek/caddyserver-minifier","owner":"devetek","description":"Caddyserver v2 plugin minifier","archived":false,"fork":false,"pushed_at":"2024-01-24T16:08:15.000Z","size":38,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-10T08:08:08.378Z","etag":null,"topics":["caddyserver","minifier-html"],"latest_commit_sha":null,"homepage":"https://cloud.terpusat.com/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devetek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-01-16T14:59:20.000Z","updated_at":"2025-06-26T09:42:12.000Z","dependencies_parsed_at":"2024-06-21T17:30:57.261Z","dependency_job_id":"8bf29aab-a4fa-4a24-a2c8-d9e418cce0c2","html_url":"https://github.com/devetek/caddyserver-minifier","commit_stats":null,"previous_names":["devetek/caddyserver-minifier"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/devetek/caddyserver-minifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devetek%2Fcaddyserver-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devetek%2Fcaddyserver-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devetek%2Fcaddyserver-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devetek%2Fcaddyserver-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devetek","download_url":"https://codeload.github.com/devetek/caddyserver-minifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devetek%2Fcaddyserver-minifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264795838,"owners_count":23665241,"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":["caddyserver","minifier-html"],"created_at":"2024-11-20T19:23:42.760Z","updated_at":"2025-07-11T11:34:46.467Z","avatar_url":"https://github.com/devetek.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Caddyserver v2 Plugin - Minifier\n\nCaddyserver v2 plugin that implements minification on-the-fly for CSS, HTML, JSON, SVG and XML. It uses [tdewolff's library](https://github.com/tdewolff/minify) so, let's thank him!.\n\n## Syntax\n\nBecause this directive does not come standard with Caddy, you may use route to order it the way you want. For example:\n\nMinimum configuration:\n```sh\nhttp://localhost:9200 {\n\troute {\n\t\tminifier\n\t\treverse_proxy localhost:8097\n\t}\n}\n```\n\nPartial configuration:\n```sh\nhttp://localhost:9200 {\n\troute {\n\t\tminifier {\n\t\t\thtml {\n\t\t\t\tKeepDefaultAttrVals true\n\t\t\t\tKeepDocumentTags true\n\t\t\t\tKeepEndTags true\n\t\t\t\tKeepQuotes true\n\t\t\t}\n\t\t}\n\t\treverse_proxy localhost:8097\n\t}\n}\n```\n\nFull configuration:\n```sh\nhttp://localhost:9200 {\n\troute {\n\t\tminifier {\n\t\t\thtml {\n\t\t\t\tKeepConditionalComments true\n\t\t\t\tKeepSpecialComments true\n\t\t\t\tKeepComments true\n\t\t\t\tKeepWhitespace true\n\t\t\t\tKeepDefaultAttrVals true\n\t\t\t\tKeepDocumentTags true\n\t\t\t\tKeepEndTags true\n\t\t\t\tKeepQuotes true\n\t\t\t}\n\t\t}\n\t\treverse_proxy localhost:8097\n\t}\n}\n```\n\n## Todo\n\n- [ ] Support for another `Content-Type` (css, js, etc):\n\n```sh\nminifier {\n js\n css\n}\n```\n\n## Credit\n\nSpecial thanks to @mholt for making a good documentation on how to use unstandard Caddy plugins, [mholt/caddy-webdav](https://github.com/mholt/caddy-webdav)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevetek%2Fcaddyserver-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevetek%2Fcaddyserver-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevetek%2Fcaddyserver-minifier/lists"}