index.html — vite Source File
Architecture documentation for index.html, a html file in the vite codebase.
Entity Profile
Source Code
<!doctype html>
<link rel="stylesheet" href="/global.css" />
<h1 class="text-black">Backend Integration</h1>
<p>
This test configures the <code>root</code> to simulate a Laravel/Rails setup.
</p>
<h2>JS Asset References</h2>
<ul>
<li class="asset-reference outside-root">Asset Outside Root</li>
</ul>
<h2>CSS Asset References</h2>
<ul>
<li>
Background URL with Alias:
<div class="background-asset outside-root--aliased"></div>
</li>
<li>
Background URL with Relative Path:
<div class="background-asset outside-root--relative"></div>
</li>
</ul>
<h2>CSS imported from JS</h2>
<p class="imported">text</p>
<script type="module" src="./main.ts"></script>
<script type="module" src="./nested/sub.ts"></script>
<script type="module">
import './global.css'
// Importing a file outside the `root` should provide an @fs path.
import outsideRootUrl from '~/images/logo.png'
setAssetReference('.outside-root', outsideRootUrl)
// Helper: Allows to test the URL content as well as the request being served.
function setAssetReference(elSelector, url) {
const text = document.createElement('code')
text.classList.add('asset-url')
text.textContent = url
const img = document.createElement('img')
img.classList.add('asset-preview')
img.src = url
const el = document.querySelector(`.asset-reference${elSelector}`)
el.appendChild(img)
el.appendChild(text)
}
</script>
Source
Frequently Asked Questions
What does index.html do?
index.html is a source file in the vite codebase, written in html.
Where is index.html in the architecture?
index.html is located at playground/backend-integration/frontend/entrypoints/index.html (directory: playground/backend-integration/frontend/entrypoints).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free