{"id":21565160,"url":"https://github.com/cfware/gulp-rewrite-html-base-href","last_synced_at":"2025-06-20T10:08:55.757Z","repository":{"id":57258837,"uuid":"300748868","full_name":"cfware/gulp-rewrite-html-base-href","owner":"cfware","description":"Rewrite the base href of HTML documents","archived":false,"fork":false,"pushed_at":"2020-10-02T22:25:10.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T10:08:53.595Z","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/cfware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-10-02T22:23:18.000Z","updated_at":"2020-10-02T22:25:12.000Z","dependencies_parsed_at":"2022-08-28T20:50:11.416Z","dependency_job_id":null,"html_url":"https://github.com/cfware/gulp-rewrite-html-base-href","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cfware/gulp-rewrite-html-base-href","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fgulp-rewrite-html-base-href","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fgulp-rewrite-html-base-href/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fgulp-rewrite-html-base-href/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fgulp-rewrite-html-base-href/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfware","download_url":"https://codeload.github.com/cfware/gulp-rewrite-html-base-href/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fgulp-rewrite-html-base-href/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260924533,"owners_count":23083524,"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-24T10:18:38.002Z","updated_at":"2025-06-20T10:08:55.711Z","avatar_url":"https://github.com/cfware.png","language":"JavaScript","readme":"# gulp-rewrite-html-base-href [![NPM Version][npm-image]][npm-url]\n\nRewrite the base href of HTML documents.\n\n## Usage\n\n```js\nimport stream from 'stream';\nimport {promisify} from 'util';\n\nimport gulp from 'gulp';\nimport gulpRewriteHtmlBaseHref from 'gulp-rewrite-html-base-href';\n\nconst pipeline = promisify(stream.pipeline);\n\nexport default () =\u003e pipeline(\n\tgulp.src('html/**'),\n\tgulpRewriteHtmlBaseHref({\n\t\t'/dev-prefix/': '/production-prefix/'\n\t})\n\tgulp.dest('build')\n);\n```\n\n## WARNING\n\nThis performs simple string replacement on `.htm`, `.html` and `.xhtml` files, no HTML\nparsing is attempted.  In the above example any match of `href=\"/dev-prefix/\"` will be\nreplaced with `href=\"/produciton-prefix/\"`.\n\nThis plugin should be used before HTML minification occurs, removal of the quotes is\nenough to prevent this module from working.\n\n[npm-image]: https://img.shields.io/npm/v/gulp-rewrite-html-base-href.svg\n[npm-url]: https://npmjs.org/package/gulp-rewrite-html-base-href\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Fgulp-rewrite-html-base-href","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfware%2Fgulp-rewrite-html-base-href","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Fgulp-rewrite-html-base-href/lists"}