{"id":21838381,"url":"https://github.com/gozenc/interpolate-html-plugin","last_synced_at":"2025-08-10T16:34:42.189Z","repository":{"id":57114030,"uuid":"353508308","full_name":"gozenc/interpolate-html-plugin","owner":"gozenc","description":"InterpolateHtmlPlugin implemented for webpack v5","archived":false,"fork":false,"pushed_at":"2021-04-01T21:20:03.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T23:27:04.348Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gozenc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-31T22:37:55.000Z","updated_at":"2021-12-28T05:25:56.000Z","dependencies_parsed_at":"2022-08-22T09:40:59.034Z","dependency_job_id":null,"html_url":"https://github.com/gozenc/interpolate-html-plugin","commit_stats":null,"previous_names":["fatihgozenc/interpolate-html-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozenc%2Finterpolate-html-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozenc%2Finterpolate-html-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozenc%2Finterpolate-html-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozenc%2Finterpolate-html-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gozenc","download_url":"https://codeload.github.com/gozenc/interpolate-html-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244818676,"owners_count":20515517,"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-27T21:10:45.914Z","updated_at":"2025-03-21T15:18:34.240Z","avatar_url":"https://github.com/gozenc.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003eInterpolateHtmlPlugin\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eReplaces your variable names in your HTML templates.\u003cbr\u003e \u003cbr\u003e\u003ci\u003eInspired from \u003ca href=\"https://www.npmjs.com/package/react-dev-utils/v/6.0.0\"\u003ereact-dev-utils/interpolate-html-plugin\u003c/a\u003e.\u003cbr\u003e Written in \u003ca href=\"https://www.typescriptlang.org/\"\u003eTypeScript\u003c/a\u003e with \u003cspan style=\"color:red\"\u003e♥\u003c/span\u003e \u003c/i\u003e\u003c/p\u003e\n\n## Overview\n\nIt works in combination with latest versions of [`HtmlWebpackPlugin`](https://github.com/jantimon/html-webpack-plugin]) and [`webpack`](https://webpack.js.org/). You can learn more about creating plugins like this [here](https://github.com/jantimon/html-webpack-plugin]).\n\n## Installation\n\n| NPM                                        | YARN                                          |\n| ------------------------------------------ | --------------------------------------------- |\n| `npm i -D webpack html-webpack-plugin`     | `yarn add -D webpack html-webpack-plugin`     |\n| `npm i -D @gozenc/interpolate-html-plugin` | `yarn add -D @gozenc/interpolate-html-plugin` |\n\n## Usage\n\n```js\nconst HtmlWebpackPlugin = require(\"html-webpack-plugin\")\nconst InterpolateHtmlPlugin = require(\"@gozenc/interpolate-html-plugin\")\n// In the webpack.config file:\n...\nplugins: [\n    new InterpolateHtmlPlugin(HtmlWebpackPlugin, {\n        'PUBLIC_URL': \"https://example.com\",\n        // Replaces %PUBLIC_URL% with https://example.com in index.html.\n        VARIABLE: 1024,\n        // Replaces %VARIABLE% with 1024 in index.html.\n    }),\n    ...\n```\n\n## Development\n\nI know build pipeline looks kinda strange, but I am making some Linux practice with node concurrently for performant build pipelines. I may insert some C calls into it too. I'll develop it further in the future, but of course I am open for discussions for it.\n\nAlso just open a ticket for feature requests of course, I'll be glad to resolve them.\n\n## ToDo\n\n-   Add webpack@3 support.\n-   Add webpack@4 support.\n-   More testing suites for development.\n-   Type definitions for hook.tap params.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgozenc%2Finterpolate-html-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgozenc%2Finterpolate-html-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgozenc%2Finterpolate-html-plugin/lists"}