sergey
sergey copied to clipboard
Remove .html from the URL in npm run dev
Is any preferred way to remove the .html
file extension from the url when using the npm run dev
command?
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)
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