We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I serve webpage without extension (.html)? Or it just a bad idea without .html on my static website?
It also doesn't work on http-server of npm, let's why I'm here...
http-server
ref: http-party/http-server#160
The text was updated successfully, but these errors were encountered:
default extensions are not currently supported but I will fix that very soon.
I will add a new option (probably --static.extensions) that will enable you to specify a default filename extension, for example:
--static.extensions
$ ws --static.extensions html
With this option set, if you supply a URL like /page it will look for both page and page.html on disk, serving the latter.
/page
page
page.html
I'll let you know once this is fixed.
Sorry, something went wrong.
lwsjs/static@5265920
I have fixed this and released a prerelease. Could you test it works for you?
Install the prerelease.
$ npm install -g local-web-server@next
Run ws with a default filename extension of html.
ws
html
ws --static.extensions html
Let me know how it goes.
Fixed and released in v3.0.0
No branches or pull requests
How do I serve webpage without extension (.html)?
Or it just a bad idea without .html on my static website?
It also doesn't work on
http-server
of npm, let's why I'm here...ref:
http-party/http-server#160
The text was updated successfully, but these errors were encountered: