parcel-transformer-strip-index-html

0.1.1 • Public • Published

parcel-transformer-strip-index-html

Strips /index.html from URLs in parcel builds

What it does

It turns stuff like this

<a href="/my-page/index.html"></a>

...into stuff like this

<a href="/my-page/"></a>

NOTE: Automatic stripping is only done when HMR is disabled, since this otherwise breaks the URLs

Usage

Add parcel-transformer-google-fonts as a transformer for parcel by adding this to your .parcelrc

{
  "transforms": {
    "*.html": [
      "parcel-transformer-google-fonts"
    ]
  }
}

Package Sidebar

Install

npm i parcel-transformer-strip-index-html

Weekly Downloads

1

Version

0.1.1

License

MPL-2.0

Unpacked Size

2.27 kB

Total Files

5

Last publish

Collaborators

  • mkg20001