Skip to content

mkg20001/parcel-plugin-strip-index-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

parcel-plugin-strip-index-html

Strips /index.html from URLs in parcel builds

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

=>

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

NOTE: Automatic stripping is only done when HMR is disabled (aka when building for production)

Usage

parcel

$ npm i -D parcel-plugin-strip-index-html

And that should do it!

other

$ npm i -g parcel-plugin-strip-index-html
$ strip-index-html /path/to/outputDir

About

Strips /index.html from URLs in parcel builds

Resources

Stars

Watchers

Forks

Packages

No packages published