Skip to content
New issue

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

2 index.html files created upon build #1656

Closed
TbirdDuncan opened this issue Feb 3, 2022 · 3 comments
Closed

2 index.html files created upon build #1656

TbirdDuncan opened this issue Feb 3, 2022 · 3 comments

Comments

@TbirdDuncan
Copy link

Same as title, running npm run build produces 2 index.html files that are identical, one is named 200.html and the other index.html

@rschristian
Copy link
Member

You can read about it here: #1441

@TbirdDuncan
Copy link
Author

TbirdDuncan commented Feb 3, 2022

I'm very curious I posted a question in discussions here about the file size of the build. I'm also curious running a performance check on both apps one with preact and the other with react, shows me that react takes less time to load...

@rschristian
Copy link
Member

Will answer that then, and I think I'll make a wiki to explain our outputs and why they exist.

Need a lot more info in order to diagnose build size and perf issues. Do note, that Preact v React + DOM is about 35kb (I believe) these days. That's pretty big if you're comparing UI libraries and using them raw on the page, however, in an app, this can easily be overshadowed by other issues. If your main bundle ends up being 600kb (for example) that 35kb will be rather irrelevant.

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

No branches or pull requests

2 participants