{"id":39624345,"url":"https://github.com/klaucode/html-webpack-basepath-plugin","last_synced_at":"2026-01-18T08:33:39.473Z","repository":{"id":57267746,"uuid":"240946128","full_name":"klaucode/html-webpack-basepath-plugin","owner":"klaucode","description":"Plugin which make possible to set basePath option in html-webpack-plugin.","archived":false,"fork":false,"pushed_at":"2020-02-16T19:35:41.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-09T08:19:23.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/klaucode.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":"2020-02-16T18:48:57.000Z","updated_at":"2022-07-18T13:51:45.000Z","dependencies_parsed_at":"2022-09-02T05:41:02.202Z","dependency_job_id":null,"html_url":"https://github.com/klaucode/html-webpack-basepath-plugin","commit_stats":null,"previous_names":["acqsk/html-webpack-basepath-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/klaucode/html-webpack-basepath-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaucode%2Fhtml-webpack-basepath-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaucode%2Fhtml-webpack-basepath-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaucode%2Fhtml-webpack-basepath-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaucode%2Fhtml-webpack-basepath-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klaucode","download_url":"https://codeload.github.com/klaucode/html-webpack-basepath-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaucode%2Fhtml-webpack-basepath-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-01-18T08:33:39.337Z","updated_at":"2026-01-18T08:33:39.457Z","avatar_url":"https://github.com/klaucode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Html Webpack Basepath Plugin\r\n\r\nPlugin for simple enhancement html webpack plugin for make possibility to define basePath option. basePath option will overwrite the path for all the JS and CSS files injected by webpack-html-plugin into html file.\r\n\r\n```bash\r\n  npm i --save-dev html-webpack-basepath-plugin\r\n```\r\n\r\n```bash\r\n  yarn add --dev html-webpack-basepath-plugin\r\n```\r\n\r\nPlugin solves problem with JS/CSS basePath on any templating systems, like on following example:\r\n\r\n```js\r\nnew HtmlWebpackPlugin({\r\n    filename: ROOT_PATH + '/app/presenters/templates/@layout.latte',\r\n    template: ROOT_PATH + '/app/assets/@layout.latte',\r\n    basePath: '{$basePath}/dist/'\r\n }),\r\n ```\r\n\r\n...it will inject into HTML:\r\n```js\r\n\u003cscript src=\"{$basePath}/dist/app.js\" ...\r\n```\r\n\r\n...and `{$basePath}` will be replaced by the base url path by the templating engine.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklaucode%2Fhtml-webpack-basepath-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklaucode%2Fhtml-webpack-basepath-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklaucode%2Fhtml-webpack-basepath-plugin/lists"}