{"id":16530855,"url":"https://github.com/hypernova7/html-beautifier-webpack-plugin","last_synced_at":"2025-10-30T06:19:20.738Z","repository":{"id":47901537,"uuid":"332368325","full_name":"hypernova7/html-beautifier-webpack-plugin","owner":"hypernova7","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-12T09:58:48.000Z","size":57,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T20:27:13.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hypernova7.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":"2021-01-24T04:40:54.000Z","updated_at":"2022-11-12T16:59:19.000Z","dependencies_parsed_at":"2025-01-13T20:26:07.815Z","dependency_job_id":"5d8007b6-0dc6-456a-8d31-ae8f52d855d4","html_url":"https://github.com/hypernova7/html-beautifier-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypernova7%2Fhtml-beautifier-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypernova7%2Fhtml-beautifier-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypernova7%2Fhtml-beautifier-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypernova7%2Fhtml-beautifier-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypernova7","download_url":"https://codeload.github.com/hypernova7/html-beautifier-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241637287,"owners_count":19994946,"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-10-11T18:07:19.474Z","updated_at":"2025-10-30T06:19:15.679Z","avatar_url":"https://github.com/hypernova7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html-beautify-webpack-plugin\nBeautifier for output of [HtmlWebpackPlugin](https://github.com/jantimon/html-webpack-plugin)\n\nInstallation\n------------\nInstall the plugin with npm:\n```shell\n$ npm i -D html-beautify-webpack-plugin\n```\n\nUsage\n-----------\n\n\n```javascript\nconst HtmlWebpackPlugin = require('html-webpack-plugin');\nconst HtmlBeautifyPlugin = require('html-beautify-webpack-plugin');\n\n...\n    plugins: [\n        new HtmlWebpackPlugin()\n        new HtmlBeautifyPlugin()\n    ]\n...\n```\n\n```javascript\n...\n    plugins: [\n        new HtmlWebpackPlugin()\n        new HtmlBeautifyPlugin({\n                config: {\n                    html: {\n                        end_with_newline: true,\n                        indent_size: 2,\n                        indent_with_tabs: true,\n                        indent_inner_html: true,\n                        preserve_newlines: true,\n                        unformatted: ['p', 'i', 'b', 'span']\n                    }\n                },\n                replace: [ ' type=\"text/javascript\"' ]\n            })\n    ]\n...\n```\n\n    Order is important\n\nConfiguration\n-------------\nYou can pass a configuration options.\nAllowed values are as follows:\n\n- `config`: `{...}` [js-beautify](https://github.com/beautify-web/js-beautify)'s options as object to beatify the output.\n- `replace`: `[string | { test: (string | RegExp), with?: (string | func)}]` Optional array of items to replace in destination file\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypernova7%2Fhtml-beautifier-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypernova7%2Fhtml-beautifier-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypernova7%2Fhtml-beautifier-webpack-plugin/lists"}