{"id":13774957,"url":"https://github.com/juliendargelos/rollup-plugin-html-minifier","last_synced_at":"2025-04-27T02:31:19.862Z","repository":{"id":35112743,"uuid":"208231505","full_name":"juliendargelos/rollup-plugin-html-minifier","owner":"juliendargelos","description":"Rollup plugin to minify HTML output files using html-minifier.","archived":false,"fork":false,"pushed_at":"2023-03-04T20:28:21.000Z","size":448,"stargazers_count":4,"open_issues_count":10,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-15T06:04:07.147Z","etag":null,"topics":[],"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/juliendargelos.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}},"created_at":"2019-09-13T09:13:15.000Z","updated_at":"2022-12-19T08:11:41.000Z","dependencies_parsed_at":"2024-01-13T12:22:56.449Z","dependency_job_id":"b7c6b097-febc-4f2c-920f-80e69bc89570","html_url":"https://github.com/juliendargelos/rollup-plugin-html-minifier","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"bb6d80df23284a2ba2addb038defe52b626be8ee"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendargelos%2Frollup-plugin-html-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendargelos%2Frollup-plugin-html-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendargelos%2Frollup-plugin-html-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendargelos%2Frollup-plugin-html-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliendargelos","download_url":"https://codeload.github.com/juliendargelos/rollup-plugin-html-minifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251080055,"owners_count":21533045,"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":[],"created_at":"2024-08-03T17:01:32.194Z","updated_at":"2025-04-27T02:31:19.519Z","avatar_url":"https://github.com/juliendargelos.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Output"],"readme":"# rollup-plugin-html-minifier\n\nThis plugin minifies html files in rollup bundle with [html-minifier](https://github.com/kangax/html-minifier).\n\n## Install\n\n```bash\nyarn add rollup-plugin-html-minifier --dev\n```\n\nor\n\n```bash\nnpm install rollup-plugin-html-minifier -D\n```\n\n## Usage\n\nrollup.config.js\n\n```javascript\nimport htmlMinifier from 'rollup-plugin-html-minifier'\n\nexport default {\n  // ...\n  plugins: [\n    htmlMinifier({\n      // These are the default values:\n\n      // Glob pattern or array of glob patterns to include\n      include: '*.html',\n\n      // Glob pattern or array of glob patterns to exclude\n      exclude: undefined,\n\n      // Method returning a boolean that filters files to process\n      // given their name (overrides include and exclude parameters)\n      filter: undefined, \n\n      // html-minifier options\n      options: {}\n    })\n  ]\n}\n```\n\nMost of the html-minifier options are disabled by default. You need to set some of them to get an actual minification. See [html-minifier options](https://github.com/kangax/html-minifier#options-quick-reference).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliendargelos%2Frollup-plugin-html-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliendargelos%2Frollup-plugin-html-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliendargelos%2Frollup-plugin-html-minifier/lists"}