Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phfaist/parcel-optimizer-nohtmlsuffix
parcel plugin - Remove .html suffixes from internal links in generated HTML pages
https://github.com/phfaist/parcel-optimizer-nohtmlsuffix
Last synced: about 2 months ago
JSON representation
parcel plugin - Remove .html suffixes from internal links in generated HTML pages
- Host: GitHub
- URL: https://github.com/phfaist/parcel-optimizer-nohtmlsuffix
- Owner: phfaist
- Created: 2022-09-08T14:35:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-24T09:19:36.000Z (9 months ago)
- Last Synced: 2024-10-12T13:45:10.570Z (3 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# parcel-optimizer-nohtmlsuffix
Simple parcel plugin to remove .html suffixes from internal links in generated HTML pages.
Adapted from https://github.com/vseventer/parcel-optimizer-friendly-urls -- thanks!
Minmial use:
```
yarn add https://github.com/phfaist/parcel-optimizer-nohtmlsuffix.git
```Create or modify `.parcelrc` to include:
```
{
"extends": "@parcel/config-default",
"optimizers": {
"*.html": ["parcel-optimizer-nohtmlsuffix", "..."]
}
}
```That's it!