{"id":13665292,"url":"https://github.com/rgcottrell/sbt-html-minifier","last_synced_at":"2026-06-22T01:31:34.826Z","repository":{"id":18351964,"uuid":"21531885","full_name":"rgcottrell/sbt-html-minifier","owner":"rgcottrell","description":"sbt-web plugin that adds HTML minification using html-minify","archived":false,"fork":false,"pushed_at":"2014-07-12T19:06:49.000Z","size":168,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-03T16:24:06.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgcottrell.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":"2014-07-06T02:12:42.000Z","updated_at":"2014-09-20T16:34:29.000Z","dependencies_parsed_at":"2022-09-07T15:12:38.506Z","dependency_job_id":null,"html_url":"https://github.com/rgcottrell/sbt-html-minifier","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rgcottrell/sbt-html-minifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgcottrell%2Fsbt-html-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgcottrell%2Fsbt-html-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgcottrell%2Fsbt-html-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgcottrell%2Fsbt-html-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgcottrell","download_url":"https://codeload.github.com/rgcottrell/sbt-html-minifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgcottrell%2Fsbt-html-minifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34630770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"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":[],"created_at":"2024-08-02T06:00:31.951Z","updated_at":"2026-06-22T01:31:34.791Z","avatar_url":"https://github.com/rgcottrell.png","language":"Scala","funding_links":[],"categories":["WEB"],"sub_categories":[],"readme":"sbt-html-minifier\n=================\n[![Build Status](https://travis-ci.org/rgcottrell/sbt-html-minifier.svg?branch=master)](https://travis-ci.org/rgcottrell/sbt-html-minifier)\n\nAn [sbt-web](https://github.com/sbt/sbt-web) plugin that uses [html-minifier](https://github.com/kangax/html-minifier)\nto minify HTML template files.\n\nAdd the plugin to the `project/plugins.sbt` of your project:\n\n```scala\naddSbtPlugin(\"com.slidingautonomy.sbt\" % \"sbt-html-minifier\" % \"1.0.0\")\n```\n\nYour project's build file also needs to enable sbt-web plugins. For example with build.sbt:\n\n```scala\nlazy val root = (project in file(\".\")).enablePlugins(SbtWeb)\n```\n\nAs with all sbt-web asset pipeline plugins, you must declare their order of execution. For example:\n\n```scala\npipelineStages := Seq(htmlMinifier)\n```\n\n## Options\n\nThe plugin is configured with sensible defaults, but can be customized to meet individual requirements. Most of the\nsame configutation options used by the html-minifier package may be specified. For example, to disable comment\nstripping:\n\n```scala\nHtmlMinifierKeys.removeComments := false\n```\n\nSee the html-minifier home page for information on available options.\n\n## File Filters\n\nBy default, the plugin scans the assets directory for any file ending in `.htm` or `.html` and creates new minified\nversions of those files. The files to be processed can be filtered using the includeFilter and excludeFilter settings.\nFor example, to limit minification to just `.tpl.html` template files:\n\n```scala\nincludeFilter in htmlMinifier := \"*tpl.html\"\n```\n\n## Prerequisites\n\nThe plugin requires that your project have the html-minifier Node module install. The easiest way to do this is to\ninclude a package.json file at the root of your project:\n\n```json\n{\n  \"dependencies\": {\n    \"html-minifier\": \"^0.6.3\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgcottrell%2Fsbt-html-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgcottrell%2Fsbt-html-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgcottrell%2Fsbt-html-minifier/lists"}