{"id":19908825,"url":"https://github.com/vseventer/parcel-optimizer-friendly-urls","last_synced_at":"2025-09-03T23:35:06.348Z","repository":{"id":42929539,"uuid":"240640506","full_name":"vseventer/parcel-optimizer-friendly-urls","owner":"vseventer","description":"Remove index.html from internal links in Parcel 2.x build output","archived":false,"fork":false,"pushed_at":"2023-01-06T02:32:54.000Z","size":423,"stargazers_count":3,"open_issues_count":8,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-11T14:53:08.623Z","etag":null,"topics":["friendly-urls","index-html","parcel","parcel-optimizer","parcel-plugin"],"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/vseventer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-15T03:45:52.000Z","updated_at":"2022-05-08T21:29:25.000Z","dependencies_parsed_at":"2023-02-05T03:16:22.209Z","dependency_job_id":null,"html_url":"https://github.com/vseventer/parcel-optimizer-friendly-urls","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vseventer/parcel-optimizer-friendly-urls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vseventer%2Fparcel-optimizer-friendly-urls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vseventer%2Fparcel-optimizer-friendly-urls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vseventer%2Fparcel-optimizer-friendly-urls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vseventer%2Fparcel-optimizer-friendly-urls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vseventer","download_url":"https://codeload.github.com/vseventer/parcel-optimizer-friendly-urls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vseventer%2Fparcel-optimizer-friendly-urls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273528611,"owners_count":25121819,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"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":["friendly-urls","index-html","parcel","parcel-optimizer","parcel-plugin"],"created_at":"2024-11-12T21:13:35.076Z","updated_at":"2025-09-03T23:35:06.303Z","avatar_url":"https://github.com/vseventer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parcel-optimizer-friendly-urls\n\u003e Remove `index.html` from internal links in Parcel's build output.\n\n[Parcel][parcel] is great, but unfortunately the HTML build output will include a trailing `index.html` for internal links. This plugin will remove `index.html` from all internal links using [PostHTML][posthtml], making your URLs beautiful again. External URLs not part of your Parcel build will be left untouched.\n\n## Examples\nThings this plugin will replace:\n* `\u003ca href=\"/contact/index.html\"\u003e` to `\u003ca href=\"/contact/\"\u003e`.\n* `\u003clink href=\"/contact/index.html\" rel=\"canonical\" /\u003e` to `\u003clink href=\"/contact/\" rel=\"canonical\" /\u003e`.\n* `\u003ca href=\"http://local.dev/contact/index.html\"\u003e` to `\u003ca href=\"http://local.dev/contact/\"\u003e` if using the `publicUrl` target property or `--public-url http://local.dev` build flag.\n\nThings this plugin will not replace:\n* `\u003ca href=\"https://www.example.com/index.html\"\u003e`\n* `\u003cp\u003eThis is a sample text mentioning index.html\u003c/p\u003e`\n\n## Installation\nDepending on which package manager you use, either:\n* `$ npm install --save-dev parcel-optimizer-friendly-urls`\n* `$ yarn add --dev parcel-optimizer-friendly-urls`\n\nNext, add the plugin to the optimizer entry in your `.parcelrc`:\n\n```json\n{\n  \"extends\": \"@parcel/config-default\",\n  \"optimizers\": {\n    \"*.html\": [\"parcel-optimizer-friendly-urls\", \"...\"]\n  },\n  ...\n}\n```\n\n## Usage\nParcel now automatically picks up on this plugin, and no further action is required on your part.\n\n## Related\n* [parcel-plugin-remove-index-html](https://www.npmjs.com/package/parcel-plugin-remove-index-html): plugin for Parcel 1.x.\n\n## Changelog\nSee the [Changelog](./CHANGELOG.md) for a list of changes.\n\n## License\n    The MIT License (MIT)\n\n    Copyright (c) 2020 Mark van Seventer\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy of\n    this software and associated documentation files (the \"Software\"), to deal in\n    the Software without restriction, including without limitation the rights to\n    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n    the Software, and to permit persons to whom the Software is furnished to do so,\n    subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[parcel]: https://parceljs.org/\n[posthtml]: https://github.com/posthtml/posthtml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvseventer%2Fparcel-optimizer-friendly-urls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvseventer%2Fparcel-optimizer-friendly-urls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvseventer%2Fparcel-optimizer-friendly-urls/lists"}