{"id":28502355,"url":"https://github.com/hexojs/hexo-html-minifier","last_synced_at":"2025-07-05T11:32:21.679Z","repository":{"id":26395236,"uuid":"29844913","full_name":"hexojs/hexo-html-minifier","owner":"hexojs","description":"Minify HTML files with HTMLMinifier.","archived":false,"fork":false,"pushed_at":"2024-06-10T09:50:06.000Z","size":186,"stargazers_count":27,"open_issues_count":3,"forks_count":11,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-04T05:11:20.097Z","etag":null,"topics":["hexo","hexo-plugin"],"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/hexojs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-01-26T04:32:06.000Z","updated_at":"2025-01-26T13:06:21.000Z","dependencies_parsed_at":"2023-01-14T04:33:52.822Z","dependency_job_id":"ef83ac2f-82b4-4128-b5b9-e8e44a58a205","html_url":"https://github.com/hexojs/hexo-html-minifier","commit_stats":{"total_commits":92,"total_committers":14,"mean_commits":6.571428571428571,"dds":0.5543478260869565,"last_synced_commit":"e4d108a614575c471e9a4c0d7643d58fdd0d8c3a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hexojs/hexo-html-minifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-html-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-html-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-html-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-html-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexojs","download_url":"https://codeload.github.com/hexojs/hexo-html-minifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-html-minifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263733478,"owners_count":23503164,"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":["hexo","hexo-plugin"],"created_at":"2025-06-08T16:09:51.500Z","updated_at":"2025-07-05T11:32:21.674Z","avatar_url":"https://github.com/hexojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hexo-html-minifier\n\n[![Build Status](https://github.com/hexojs/hexo-html-minifier/workflows/Tester/badge.svg)](https://github.com/hexojs/hexo-html-minifier/actions?query=workflow%3ATester)\n[![NPM version](https://badge.fury.io/js/hexo-html-minifier.svg)](https://www.npmjs.com/package/hexo-html-minifier)\n\nMinify HTML files with [HTMLMinifier](https://github.com/kangax/html-minifier).\n\n## Installation\n\n``` bash\n$ npm install hexo-html-minifier --save\n```\n\n## Options\n\nYou can set options of HTMLMinifier in the main `_config.yml` file:\n\n``` yaml\nhtml_minifier:\n  exclude: \n```\n\n- **exclude**: Exclude files from being minified. Support [globbing patterns](https://github.com/micromatch/micromatch#extended-globbing).\n\nDefault options:\n\n``` yaml\nhtml_minifier:  \n  collapseBooleanAttributes: true\n  collapseWhitespace: true\n  # Ignore '\u003c!-- more --\u003e' https://hexo.io/docs/tag-plugins#Post-Excerpt\n  ignoreCustomComments: [ !!js/regexp /^\\s*more/]\n  removeComments: true\n  removeEmptyAttributes: true\n  removeScriptTypeAttributes: true\n  removeStyleLinkTypeAttributes: true\n  minifyJS: true\n  minifyCSS: true\n```\n\n- **ignoreCustomComments**: Array of regex'es that allow to ignore certain comments, when matched. Need to prepend [`!!js/regexp`](https://github.com/nodeca/js-yaml#supported-yaml-types) to support regex.\n\nDescription of the above options and other available options, see [HTMLMinifier](https://github.com/kangax/html-minifier#options-quick-reference)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexojs%2Fhexo-html-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexojs%2Fhexo-html-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexojs%2Fhexo-html-minifier/lists"}