{"id":21093497,"url":"https://github.com/emepetres/html-minifier-action","last_synced_at":"2025-10-13T10:35:12.353Z","repository":{"id":226657610,"uuid":"769300170","full_name":"emepetres/html-minifier-action","owner":"emepetres","description":"Action to use html-minifier on Github Actions","archived":false,"fork":false,"pushed_at":"2024-03-08T23:54:27.000Z","size":1984,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-30T13:02:39.439Z","etag":null,"topics":["deployment","minify","minify-html"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/emepetres.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2024-03-08T18:58:41.000Z","updated_at":"2024-03-08T23:59:29.000Z","dependencies_parsed_at":"2025-05-30T11:09:53.619Z","dependency_job_id":"f7b3c8ef-24bd-46a1-b0c5-d1f45aca54d2","html_url":"https://github.com/emepetres/html-minifier-action","commit_stats":null,"previous_names":["emepetres/html-minifier-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/emepetres/html-minifier-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emepetres%2Fhtml-minifier-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emepetres%2Fhtml-minifier-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emepetres%2Fhtml-minifier-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emepetres%2Fhtml-minifier-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emepetres","download_url":"https://codeload.github.com/emepetres/html-minifier-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emepetres%2Fhtml-minifier-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014641,"owners_count":26085555,"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-13T02:00:06.723Z","response_time":61,"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":["deployment","minify","minify-html"],"created_at":"2024-11-19T22:02:53.558Z","updated_at":"2025-10-13T10:35:12.336Z","avatar_url":"https://github.com/emepetres.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTMLMinifier Action\n[![GitHub release](https://img.shields.io/github/release/emepetres/html-minifier-action.svg?color=orange)](https://gitHub.com/emepetres/html-minifier-action/releases/)\n[![MIT license](https://img.shields.io/github/license/emepetres/html-minifier-action.svg?color=blue)](https://github.com/emepetres/html-minifier-action/blob/main/LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n\nAction to use [HTMLMinifier](https://github.com/kangax/html-minifier) on Github Actions\n\n## Usage\n\nAdd the following step to your workflow file, just before deploying your HTML files.\n\n```yaml\n- uses: emepetres/html-minifier-action@v1\n```\n\n## Inputs\n\n### `rootDir`\n\n**Optional** Path to root directory containing HTML files. Default `\".\"`.\n\n### `verbose`\n\n**Optional** Prints minification details. Default `false`.\n\n### `minifyCSS`\n\n**Optional** Minify CSS in style elements and style attributes. Default `true`.\n\n### `minifyJS`\n\n**Optional** Minify JavaScript in script elements and event attributes. Default `true`.\n\n### `flags`\n\n**Optional** Additional flags to pass to HTMLMinifier, separted by comma. See [docs](https://github.com/kangax/html-minifier#options-quick-reference). Use ! to indicate false value of a flag..\n\n## Outputs\n\n### `minifiedFiles`\n\nThe files minified, relative to repository root.\n\n## Example usage\n\n```yaml\n- name: HTMLMinifier\n  uses: emepetres/html-minifier-action@v1\n  id: html-minifier\n  with:\n    rootDir: \"src\"\n    verbose: true\n    flags: \"collapseWhitespace, removeComments, removeOptionalTags, removeRedundantAttributes, removeScriptTypeAttributes, removeTagWhitespace, useShortDoctype, removeAttributeQuotes\"\n- name: Get the minfied files from output\n  run: echo \"The files minfied are ${{ steps.html-minifier.outputs.minifiedFiles }}\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femepetres%2Fhtml-minifier-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femepetres%2Fhtml-minifier-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femepetres%2Fhtml-minifier-action/lists"}