question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Name Change - app.html to index.html

See original GitHub issue

This issue isn’t about a bug

So the language of the web is HTML right? A video from Rich Harris. Then why use app.html instead of index.html? The first file that beginner developer creates is index.html so because of those two reasons I think it’s best to change app.html to index.html. I know that SvelteKit isn’t even the beta or alpha (or whatever) release but, in Sapper, the name of the main HTML file is index.html so I thought maybe in SvelteKit it’s going to be app.html. I hope I’m not being ridden by creating such a request.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
babichjacobcommented, Apr 18, 2021

People using Sapper saw the index.html file and thought they could just send the src file to their HTTP server and it start working, but it doesn’t. Let’s not have that happen again in SvelteKit.

0reactions
babakfpcommented, Apr 18, 2021

It is a template. It’s used for serving all SSR’d pages. I don’t see why we would want to call it index.html. That this is a filename people are already familiar with seems to be a counterargument, because it doesn’t have the meaning they’d be familiar with.

It’s the same because it doesn’t matter that SvelteKit going to generate the code dynamically. What does the beginner developer say at the first time that sees app.html and the second time that sees its content? First time: “Ok we have a .html file with the name of app. What does it contain?” Second time: “Ahah, It’s the same as the index.html (or it’s the index page or…)”.

It’s just one simple way to get the point. There is no reason to name it app.html and make it “not one way to the point”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I rename from index.html to app.html? #1761 - GitHub
One of the options is: filename: 'index.html' Simply change this to the new name and the 'npm run build' script will create the...
Read more >
How can I rename index.html in a create-react-app project?
Then open paths.js which is found in the config folder, and change the appHtml property in the module.exports. That's the only change you'll ......
Read more >
Using Different Names for Index Files
Our Web servers support a variety of index file names by default. Advanced users can change the defaults.
Read more >
Before You Share Your React App, Change index.html
Navigate to index.html in the public directory and find the head tag. ... See that text Web site created using create-react-app? Let's change...
Read more >
How to change the "index.html" to the app name - Ionic Forum
I'm trying to change the default "index.html" title that is showed up when I send a push notification using ionic cloud and my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found