tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.41k stars 484 forks source link

added support for default extensions #353

Open shanebdavis opened 4 years ago

shanebdavis commented 4 years ago

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 commented 4 years ago

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

shanebdavis commented 4 years ago

@tapio Any feedback?

yandeu commented 3 years ago

Hi @shanebdavis

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

jiftoo commented 2 years ago

Any updates on this?