{"id":13817720,"url":"https://github.com/jonschlinkert/gulp-htmlmin","last_synced_at":"2025-04-14T20:56:48.427Z","repository":{"id":12671573,"uuid":"15343567","full_name":"jonschlinkert/gulp-htmlmin","owner":"jonschlinkert","description":"Minify HTML","archived":false,"fork":false,"pushed_at":"2019-11-08T15:31:25.000Z","size":64,"stargazers_count":727,"open_issues_count":5,"forks_count":58,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-10-29T17:26:59.044Z","etag":null,"topics":["gulp","gulpplugin","html","html-minifier","min","minifier","minify","plugin"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","language":"HTML","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/jonschlinkert.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":"2013-12-20T16:55:23.000Z","updated_at":"2024-10-16T14:16:03.000Z","dependencies_parsed_at":"2022-07-15T11:30:36.958Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/gulp-htmlmin","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgulp-htmlmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgulp-htmlmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgulp-htmlmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgulp-htmlmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/gulp-htmlmin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961186,"owners_count":21189991,"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":["gulp","gulpplugin","html","html-minifier","min","minifier","minify","plugin"],"created_at":"2024-08-04T06:00:54.209Z","updated_at":"2025-04-14T20:56:48.401Z","avatar_url":"https://github.com/jonschlinkert.png","language":"HTML","readme":"# gulp-htmlmin [![NPM version](https://img.shields.io/npm/v/gulp-htmlmin.svg?style=flat)](https://www.npmjs.com/package/gulp-htmlmin) [![NPM monthly downloads](https://img.shields.io/npm/dm/gulp-htmlmin.svg?style=flat)](https://npmjs.org/package/gulp-htmlmin) [![NPM total downloads](https://img.shields.io/npm/dt/gulp-htmlmin.svg?style=flat)](https://npmjs.org/package/gulp-htmlmin) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/gulp-htmlmin.svg?style=flat\u0026label=Travis)](https://travis-ci.org/jonschlinkert/gulp-htmlmin)\n\n\u003e gulp plugin to minify HTML.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save gulp-htmlmin\n```\n\n## Heads up!\n\n_**Please do not report issues related to HTML parsing and output on this repository. Report those issues to the [html-minifier](https://github.com/kangax/html-minifier/issues) issue tracker.**_\n\n## Usage\n\nSee the [html-minifer docs](https://github.com/kangax/html-minifier) for all available options.\n\n```js\nconst gulp = require('gulp');\nconst htmlmin = require('gulp-htmlmin');\n\ngulp.task('minify', () =\u003e {\n  return gulp.src('src/*.html')\n    .pipe(htmlmin({ collapseWhitespace: true }))\n    .pipe(gulp.dest('dist'));\n});\n```\n\n## About\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eContributing\u003c/strong\u003e\u003c/summary\u003e\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eRunning Tests\u003c/strong\u003e\u003c/summary\u003e\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eBuilding docs\u003c/strong\u003e\u003c/summary\u003e\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme \u0026\u0026 verb\n```\n\n\u003c/details\u003e\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 41 | [shinnn](https://github.com/shinnn) |\n| 20 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 11 | [doowb](https://github.com/doowb) |\n| 7 | [stevelacy](https://github.com/stevelacy) |\n| 2 | [TheDancingCode](https://github.com/TheDancingCode) |\n| 1 | [cwonrails](https://github.com/cwonrails) |\n| 1 | [igoradamenko](https://github.com/igoradamenko) |\n| 1 | [oblador](https://github.com/oblador) |\n| 1 | [jdalton](https://github.com/jdalton) |\n| 1 | [JoseChirivella14](https://github.com/JoseChirivella14) |\n| 1 | [nschloe](https://github.com/nschloe) |\n| 1 | [tomByrer](https://github.com/tomByrer) |\n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n**Shinnosuke Watanabe**\n\n* [GitHub Profile](https://github.com/shinnn)\n* [Twitter Profile](https://twitter.com/shinnn_tw)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Shinnosuke Watanabe](https://github.com/shinnn).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on September 08, 2018._\n","funding_links":[],"categories":["Getting Started","插件","Minifiers - HTML","Plugins"],"sub_categories":["Overview","压缩","Meetups","Minification"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fgulp-htmlmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fgulp-htmlmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fgulp-htmlmin/lists"}