{"id":21525272,"url":"https://github.com/superraytin/html-webpack-simple-inject-plugin","last_synced_at":"2025-03-17T18:18:53.207Z","repository":{"id":57686761,"uuid":"471305095","full_name":"superRaytin/html-webpack-simple-inject-plugin","owner":"superRaytin","description":"Injects a custom string into the html-webpack-plugin output.","archived":false,"fork":false,"pushed_at":"2022-03-18T10:39:10.000Z","size":86,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-27T08:50:00.558Z","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/superRaytin.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":"2022-03-18T09:21:43.000Z","updated_at":"2023-03-08T10:33:12.000Z","dependencies_parsed_at":"2022-09-19T08:40:28.112Z","dependency_job_id":null,"html_url":"https://github.com/superRaytin/html-webpack-simple-inject-plugin","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/superRaytin%2Fhtml-webpack-simple-inject-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superRaytin%2Fhtml-webpack-simple-inject-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superRaytin%2Fhtml-webpack-simple-inject-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superRaytin%2Fhtml-webpack-simple-inject-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superRaytin","download_url":"https://codeload.github.com/superRaytin/html-webpack-simple-inject-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244085008,"owners_count":20395523,"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-11-24T01:34:10.810Z","updated_at":"2025-03-17T18:18:53.184Z","avatar_url":"https://github.com/superRaytin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html-webpack-simple-inject-plugin\nSimplely injects a custom string into the html-webpack-plugin output.\n\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n\n[npm-url]: https://npmjs.org/package/html-webpack-simple-inject-plugin\n[downloads-image]: http://img.shields.io/npm/dm/html-webpack-simple-inject-plugin.svg\n[npm-image]: http://img.shields.io/npm/v/html-webpack-simple-inject-plugin.svg\n\n## Installation\n\n```bash\nnpm install --save-dev html-webpack-simple-inject-plugin\n```\n\n## Example\n\n#### input\n\n```js\nimport HtmlWebpackPlugin from \"html-webpack-plugin\"\nimport HtmlWebpackSimpleInjectPlugin from \"html-webpack-simple-inject-plugin\"\n\nexport default {\n  plugins: [\n    new HtmlWebpackPlugin({\n      templateContent: '\u003chtml\u003e\u003chead\u003e\u003c/head\u003e\u003cbody\u003etext\u003c/body\u003e\u003c/html\u003e'\n    }),\n    new HtmlWebpackSimpleInjectPlugin({\n      content: '\u003cdiv\u003einject\u003c/div\u003e',\n      target: 'body',\n      position: 'start',\n    }),\n  ],\n}\n```\n\n#### output\n\n```html\n\u003chtml\u003e\u003chead\u003e\u003c/head\u003e\u003cbody\u003e\u003cdiv\u003einject\u003c/div\u003etext\u003c/body\u003e\u003c/html\u003e\n```\n\n## Options\n\n|Name|Type|Default|Description|\n|:--:|:--:|:-----:|:----------|\n|**`content`**|`{String}`|\"\"|The string that will be injected into the html-webpack-plugin output.|\n|**`target`**|`\"head\"`\\|`\"body\"`|`'head'`|The target place that you wanted to inject.|\n|**`position`**|`\"start\"`\\|`\"end\"`|`'end'`|If `start`, the content will be injected after the opening tag of `target`. If `end`, the content will be injected before the ending tag of `target`.|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperraytin%2Fhtml-webpack-simple-inject-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperraytin%2Fhtml-webpack-simple-inject-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperraytin%2Fhtml-webpack-simple-inject-plugin/lists"}