{"id":16843805,"url":"https://github.com/sapics/html-minifier-loader","last_synced_at":"2025-04-11T05:53:21.049Z","repository":{"id":57112277,"uuid":"41944250","full_name":"sapics/html-minifier-loader","owner":"sapics","description":"Webpack loader which minifies HTML by html-minifier","archived":false,"fork":false,"pushed_at":"2018-08-14T05:29:31.000Z","size":10,"stargazers_count":7,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T03:51:37.912Z","etag":null,"topics":["html-minifier","webpack-loader"],"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/sapics.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":"2015-09-05T01:14:15.000Z","updated_at":"2022-03-14T15:16:20.000Z","dependencies_parsed_at":"2022-08-21T10:31:10.524Z","dependency_job_id":null,"html_url":"https://github.com/sapics/html-minifier-loader","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapics%2Fhtml-minifier-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapics%2Fhtml-minifier-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapics%2Fhtml-minifier-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapics%2Fhtml-minifier-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sapics","download_url":"https://codeload.github.com/sapics/html-minifier-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247941324,"owners_count":21022028,"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":["html-minifier","webpack-loader"],"created_at":"2024-10-13T12:53:43.465Z","updated_at":"2025-04-11T05:53:21.026Z","avatar_url":"https://github.com/sapics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html-minifier-loader   [![NPM version](https://badge.fury.io/js/html-minifier-loader.svg)](https://badge.fury.io/js/html-minifier-loader)\n\nWebpack loader that minifies HTML by [html-minifier](https://github.com/kangax/html-minifier).\n\nInstallation\n---\n```console\nnpm install html-minifier html-minifier-loader --save\n```\n\nExample of webpack.config.js\n---\nYou can pass [html-minifier](https://github.com/kangax/html-minifier) parameters by 'html-minifier-loader' property.\nThe default is `{removeComments: true, collapseWhitespace: true}`.\n```js\nmodule: {\n    loaders: [\n        {    test: /\\.html$/,\n             loader: 'raw-loader!html-minifier-loader'\n        }\n    ]\n},\n'html-minifier-loader': {\n    removeComments: false,\n    collapseWhitespace: true,\n    conservativeCollapse: true,\n    preserveLineBreaks: true\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapics%2Fhtml-minifier-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapics%2Fhtml-minifier-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapics%2Fhtml-minifier-loader/lists"}