live-server icon indicating copy to clipboard operation
live-server copied to clipboard

added support for default extensions

Open shanebdavis opened this issue 3 years ago • 4 comments

I enabled the "extension" feature already present in the 'send' npm package to allow default extensions:

Example: "localhost:8080/contact" can now resolve the file "/contact.html" if the file "/contact" does not exist.

shanebdavis avatar Aug 06 '20 17:08 shanebdavis

I also added a test to validate default extensions are working. All tests are passing.

shanebdavis avatar Aug 06 '20 17:08 shanebdavis

@tapio Any feedback?

shanebdavis avatar Aug 18 '20 18:08 shanebdavis

Hi @shanebdavis

Looks nice. Feel free to add your PR to https://github.com/yandeu/five-server.

yandeu avatar Mar 25 '21 15:03 yandeu

Any updates on this?

jiftoo avatar Jul 06 '22 12:07 jiftoo