{"id":30181077,"url":"https://github.com/jaredlunde/snowpack-plugin-minify-html","last_synced_at":"2025-08-12T08:07:28.529Z","repository":{"id":57364830,"uuid":"290823272","full_name":"jaredLunde/snowpack-plugin-minify-html","owner":"jaredLunde","description":"Minify HTML in production using html-minifier with Snowpack","archived":false,"fork":false,"pushed_at":"2020-08-27T16:15:43.000Z","size":150,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-06T10:18:42.600Z","etag":null,"topics":["html-minifier","minify-html","snowpack","snowpack-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jaredLunde.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-27T16:14:45.000Z","updated_at":"2021-11-25T10:37:50.000Z","dependencies_parsed_at":"2022-09-13T21:11:54.350Z","dependency_job_id":null,"html_url":"https://github.com/jaredLunde/snowpack-plugin-minify-html","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jaredLunde/snowpack-plugin-minify-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredLunde%2Fsnowpack-plugin-minify-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredLunde%2Fsnowpack-plugin-minify-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredLunde%2Fsnowpack-plugin-minify-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredLunde%2Fsnowpack-plugin-minify-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredLunde","download_url":"https://codeload.github.com/jaredLunde/snowpack-plugin-minify-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredLunde%2Fsnowpack-plugin-minify-html/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270024697,"owners_count":24514054,"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-08-12T02:00:09.011Z","response_time":80,"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":["html-minifier","minify-html","snowpack","snowpack-plugin"],"created_at":"2025-08-12T08:06:45.806Z","updated_at":"2025-08-12T08:07:28.518Z","avatar_url":"https://github.com/jaredLunde.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003chr/\u003e\n\n# snowpack-plugin-minify-html\n\n\u003e Minify HTML in production using [html-minifier](https://github.com/kangax/html-minifier#readme) with Snowpack\n\n```sh\nnpm i snowpack-plugin-minify-html\n```\n\n\u003cp\u003e\n  \u003ca aria-label=\"Types\" href=\"https://www.npmjs.com/package/snowpack-plugin-minify-html\"\u003e\n    \u003cimg alt=\"Types\" src=\"https://img.shields.io/npm/types/snowpack-plugin-minify-html?style=for-the-badge\u0026labelColor=24292e\"\u003e\n  \u003c/a\u003e\n  \u003c!--\n  \u003ca aria-label=\"Code coverage report\" href=\"https://codecov.io/gh/jaredLunde/snowpack-plugin-terser\"\u003e\n    \u003cimg alt=\"Code coverage\" src=\"https://img.shields.io/codecov/c/gh/jaredLunde/snowpack-plugin-terser?style=for-the-badge\u0026labelColor=24292e\"\u003e\n  \u003c/a\u003e\n  --\u003e\n  \u003ca aria-label=\"Build status\" href=\"https://travis-ci.com/jaredLunde/snowpack-plugin-minify-html\"\u003e\n    \u003cimg alt=\"Build status\" src=\"https://img.shields.io/travis/com/jaredLunde/snowpack-plugin-minify-html?style=for-the-badge\u0026labelColor=24292e\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"NPM version\" href=\"https://www.npmjs.com/package/snowpack-plugin-minify-html\"\u003e\n    \u003cimg alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/snowpack-plugin-minify-html?style=for-the-badge\u0026labelColor=24292e\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"License\" href=\"https://jaredlunde.mit-license.org/\"\u003e\n    \u003cimg alt=\"MIT License\" src=\"https://img.shields.io/npm/l/snowpack-plugin-minify-html?style=for-the-badge\u0026labelColor=24292e\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## When to use this\n\nYou should only use this if you aren't already using a bundler (Webpack, Parcel, Rollup) to\nbuild your production site.\n\n## Quick start\n\n```js\n// snowpack.config.js\nmodule.exports = {\n  plugins: [\n    [\n      'snowpack-plugin-minify-html',\n      {\n        /**\n         * @see Plugin Options below\n         */\n        htmlMinifierOptions: {\n          sortAttributes: true,\n          removeComments: true,\n        },\n      },\n    ],\n  ],\n}\n```\n\n## Plugin Options\n\n```ts\nexport interface SnowpackPluginHtmlMinifierOptions {\n  /**\n   * An array of glob patterns for files you want to explicitly include\n   * for html-minifier minification. By default all HTML files are included.\n   */\n  include?: string[]\n  /**\n   * An array of glob patterns for files you want to exclude from\n   * html-minifier minification\n   */\n  exclude?: string[]\n  /**\n   * html-minifier minify() options passed directly to html-minifier\n   * @see https://github.com/kangax/html-minifier#options-quick-reference\n   */\n  htmlMinifierOptions?: htmlMinifier.Options\n}\n```\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredlunde%2Fsnowpack-plugin-minify-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredlunde%2Fsnowpack-plugin-minify-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredlunde%2Fsnowpack-plugin-minify-html/lists"}