TestCssLinkPlugin() — vite Function Reference
Architecture documentation for the TestCssLinkPlugin() function in plugin.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD cc2696cb_eb07_3bc8_3f9c_5c748a77e44f["TestCssLinkPlugin()"] 781d8cbd_13ea_7fbf_365c_3960563bd6f1["plugin.ts"] cc2696cb_eb07_3bc8_3f9c_5c748a77e44f -->|defined in| 781d8cbd_13ea_7fbf_365c_3960563bd6f1 style cc2696cb_eb07_3bc8_3f9c_5c748a77e44f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/hmr/css-link/plugin.ts lines 5–26
export function TestCssLinkPlugin(): Plugin {
return {
name: 'test-css-link',
transformIndexHtml: {
handler(_html, ctx) {
if (!ctx.filename.endsWith('/css-link/index.html')) return
return [
{
tag: 'link',
attrs: {
rel: 'stylesheet',
href: '/css-link/styles.css',
'data-vite-dev-id': normalizePath(
path.resolve(import.meta.dirname, 'styles.css'),
),
},
},
]
},
},
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestCssLinkPlugin() do?
TestCssLinkPlugin() is a function in the vite codebase, defined in playground/hmr/css-link/plugin.ts.
Where is TestCssLinkPlugin() defined?
TestCssLinkPlugin() is defined in playground/hmr/css-link/plugin.ts at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free