Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Remove .html from the URL in npm run dev #41

Open
alvinkonda opened this issue Mar 10, 2020 · 2 comments
Open

Remove .html from the URL in npm run dev #41

alvinkonda opened this issue Mar 10, 2020 · 2 comments

Comments

@alvinkonda
Copy link

Is any preferred way to remove the .html file extension from the url when using the npm run dev command?

@MyZeD
Copy link

MyZeD commented May 8, 2020

You can adding a directory before the html document and rename your html-file to index.html.
Examples:
https://example.com/archive(/index.html)
https://example.com/about(/index.html)

@Aditya94A
Copy link

That's rather tedious, instead the build process could automatically rename the file for us and set the content type to HTML so it opens up without the extension in the browser.

CC @trys

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants