How to hide some of my files when uploading my web?

I did upload my web on github and bought a free domain using a student discount. But suddenly I dont know how to hide this files and I want that only index.html is showing on the Sources in dev tool. How can I hide some of the files?
3 Replies
Jochem
Jochem2y ago
Sources will list anything referenced in your HTML and CSS, you can't change that
sebin
sebinOP2y ago
can I ask why some of the portfolio I saw on the web they only has index html on their sources? Just wondering.
Jochem
Jochem2y ago
if you use only HTML, and don't reference any images, javascript, or css files, then they won't show up there. Might also be that they're referencing them on another domain and it's part of another tree element in source. Without an example, I can't say for sure though Why do you want to hide the other files?
Want results from more Discord servers?
Add your server