{"id":21739418,"url":"https://github.com/best-shot/html-add-asset-webpack-plugin","last_synced_at":"2026-04-17T13:32:59.306Z","repository":{"id":57686751,"uuid":"475264066","full_name":"best-shot/html-add-asset-webpack-plugin","owner":"best-shot","description":"Webpack plugin to inject tags to html","archived":false,"fork":false,"pushed_at":"2024-03-14T06:33:36.000Z","size":402,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T04:13:14.079Z","etag":null,"topics":["cdn","html","html-webpack-plugin","plugin","script","style","webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/best-shot.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":"2022-03-29T03:18:55.000Z","updated_at":"2022-03-30T09:28:41.000Z","dependencies_parsed_at":"2024-03-08T08:24:36.971Z","dependency_job_id":"ae97a474-5761-4398-b36d-57cae9e7031b","html_url":"https://github.com/best-shot/html-add-asset-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/best-shot/html-add-asset-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-shot%2Fhtml-add-asset-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-shot%2Fhtml-add-asset-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-shot%2Fhtml-add-asset-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-shot%2Fhtml-add-asset-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/best-shot","download_url":"https://codeload.github.com/best-shot/html-add-asset-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-shot%2Fhtml-add-asset-webpack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31931443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cdn","html","html-webpack-plugin","plugin","script","style","webpack","webpack-plugin"],"created_at":"2024-11-26T06:08:55.491Z","updated_at":"2026-04-17T13:32:59.281Z","avatar_url":"https://github.com/best-shot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html-add-asset-webpack-plugin\n\nWebpack plugin to inject tags to html.\n\n[![npm][npm-badge]][npm-url]\n[![github][github-badge]][github-url]\n![node][node-badge]\n\n[npm-url]: https://www.npmjs.com/package/html-add-asset-webpack-plugin\n[npm-badge]: https://img.shields.io/npm/v/html-add-asset-webpack-plugin.svg?style=flat-square\u0026logo=npm\n[github-url]: https://github.com/best-shot/html-add-asset-webpack-plugin\n[github-badge]: https://img.shields.io/npm/l/html-add-asset-webpack-plugin.svg?style=flat-square\u0026colorB=blue\u0026logo=github\n[node-badge]: https://img.shields.io/node/v/html-add-asset-webpack-plugin.svg?style=flat-square\u0026colorB=green\u0026logo=node.js\n\n## Installation\n\n```bash\nnpm install html-add-asset-webpack-plugin --save-dev\n```\n\n## Usage\n\nAdd the plugin to your webpack config\n\n```javascript\nimport { HtmlAddAssetWebpackPlugin } from 'html-add-asset-webpack-plugin';\n// or\nconst { HtmlAddAssetWebpackPlugin } = require('html-add-asset-webpack-plugin');\n```\n\n```javascript\nplugins: [\n  new HtmlWebpackPlugin({\n    filename: 'index.html'\n  }),\n  new HtmlWebpackPlugin({\n    filename: 'other.html',\n    tags: [\n      'simple.js',\n      {\n        tagName: 'script',\n        prepend: true,\n        attributes: {\n          src: 'special-script.js'\n        }\n      }\n    ]\n  }),\n  new HtmlAddAssetWebpackPlugin()\n];\n```\n\nTo:\n\n```html\n\u003c!-- index.html --\u003e\n\u003cscript src=\"common-script.js\"\u003e\u003c/script\u003e\n\n\u003c!-- other.html --\u003e\n\u003cscript src=\"simple.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"special-script.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"common-script.js\"\u003e\u003c/script\u003e\n```\n\n## Options\n\n### HtmlWebpackPlugin.Options.tags:\n\n```ts\ninterface Tag extends Omit\u003cHtmlTagObject, 'voidTag'\u003e {\n  voidTag?: boolean;\n  prepend?: boolean;\n  tagName: 'meta' | 'script' | 'style' | 'link';\n}\n\ntype tags = (string | Tag)[];\n```\n\n## Inspiration\n\nThis project is inspired by [html-webpack-inject-plugin](https://github.com/kagawagao/html-webpack-inject-plugin).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbest-shot%2Fhtml-add-asset-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbest-shot%2Fhtml-add-asset-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbest-shot%2Fhtml-add-asset-webpack-plugin/lists"}