{"id":18524063,"url":"https://github.com/lakshay2395/html-minification-maven-plugin","last_synced_at":"2025-10-09T22:33:53.093Z","repository":{"id":113723008,"uuid":"122366762","full_name":"lakshay2395/html-minification-maven-plugin","owner":"lakshay2395","description":"A simple HTML minification plugin to be used in maven projects during build process. ","archived":false,"fork":false,"pushed_at":"2018-02-22T09:16:58.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T22:33:39.549Z","etag":null,"topics":["beta-release","html-minification","java","maven-plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","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/lakshay2395.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":"2018-02-21T17:09:17.000Z","updated_at":"2023-10-05T15:50:32.000Z","dependencies_parsed_at":"2023-06-29T11:15:18.812Z","dependency_job_id":null,"html_url":"https://github.com/lakshay2395/html-minification-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lakshay2395/html-minification-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lakshay2395%2Fhtml-minification-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lakshay2395%2Fhtml-minification-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lakshay2395%2Fhtml-minification-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lakshay2395%2Fhtml-minification-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lakshay2395","download_url":"https://codeload.github.com/lakshay2395/html-minification-maven-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lakshay2395%2Fhtml-minification-maven-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002107,"owners_count":26083307,"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-10-09T02:00:07.460Z","response_time":59,"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":["beta-release","html-minification","java","maven-plugin"],"created_at":"2024-11-06T17:39:27.080Z","updated_at":"2025-10-09T22:33:53.074Z","avatar_url":"https://github.com/lakshay2395.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## html-minification-maven-plugin\nA simple HTML minification plugin to be used in maven projects during build process. Build over [serg472/htmlcompressor](https://github.com/serg472/htmlcompressor) library, this plugin provides an easy to use plugin based configuration of the library so that simultaneous minification of html files become possible during build process only. Honestly speaking , this was a requirement in my current project.\n\n## Usage\nBelow code provides a simple plugin code fragment to be placed in your pom.xml file to make this code work.\n```sh\n....\n\u003cplugin\u003e\n  \u003cgroupId\u003ecom.htmlminifier\u003c/groupId\u003e\n  \u003cartifactId\u003ehtml-maven-plugin\u003c/artifactId\u003e\n  \u003cversion\u003e0.0.1-SNAPSHOT\u003c/version\u003e\n  \u003cexecutions\u003e\n      \u003cexecution\u003e\n        \u003cphase\u003epackage\u003c/phase\u003e\n        \u003cgoals\u003e\n          \u003cgoal\u003ehtml-minifier\u003c/goal\u003e\n        \u003c/goals\u003e\n      \u003c/execution\u003e\n   \u003c/executions\u003e\n   \u003cconfiguration\u003e\n     \u003csource-folder\u003esrc/main/java/html\u003c/source-folder\u003e \u003c!-- required field --\u003e\n     \u003ctarget-folder\u003esrc/main/java/minified-html\u003c/target-folder\u003e \u003c!-- required field --\u003e\n     \u003cwalk-recursively\u003efalse\u003c/walk-recursively\u003e \u003c!-- required field --\u003e\n     \u003ccompression-enabled\u003etrue\u003c/compression-enabled\u003e \u003c!-- required field --\u003e\n   \u003c/configuration\u003e\n\u003c/plugin\u003e\n....\n```\n## Advanced Options\nOptional configuration parameters (Example contains default values) - \n```sh\n....\n\u003cconfiguration\u003e\n  ...\n  \u003cremove-multispaces\u003etrue\u003c/remove-multispaces\u003e\n  \u003cremove-intertag-spaces\u003etrue\u003c/remove-intertag-spaces\u003e\n  \u003cremove-quotes\u003etrue\u003c/remove-quotes\u003e\n  \u003csimplify-doctype\u003etrue\u003c/simplify-doctype\u003e\n  \u003cremove-script-attrs\u003efalse\u003c/remove-script-attrs\u003e\n  \u003cremove-style-attrs\u003efalse\u003c/remove-style-attrs\u003e\n  \u003cremove-link-attrs\u003efalse\u003c/remove-link-attrs\u003e\n  \u003cremove-form-attrs\u003efalse\u003c/remove-form-attrs\u003e\n  \u003cremove-input-attrs\u003efalse\u003c/remove-input-attrs\u003e\n  \u003cremove-javascript-protocol\u003efalse\u003c/remove-javascript-protocol\u003e\n  \u003cremove-http-protocol\u003etrue\u003c/remove-http-protocol\u003e\n  \u003cremove-https-protocol\u003etrue\u003c/remove-https-protocol\u003e\n  \u003cpreserve-original-linebreaks\u003efalse\u003c/preserve-original-linebreaks\u003e\n  \u003cminify-css\u003etrue\u003c/minify-css\u003e\n  \u003cminify-js\u003etrue\u003c/minify-js\u003e\n\u003c/configuration\u003e\n....\n```\n## Notes\nCurrently, the plugin isn't there for public access on Maven repo. In the meantime, one can clone and locally build the jar of the project and use it as a beta release. Do post any issues found in plugin.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flakshay2395%2Fhtml-minification-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flakshay2395%2Fhtml-minification-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flakshay2395%2Fhtml-minification-maven-plugin/lists"}