MCPcopy
hub / github.com/tailwindlabs/tailwindcss / loadStylesheet

Function loadStylesheet

packages/@tailwindcss-node/src/compile.ts:50–62  ·  view source on GitHub ↗
(id: string, sheetBase: string)

Source from the content-addressed store, hash-verified

48 return loadModule(id, base, onDependency, customJsResolver)
49 },
50 async loadStylesheet(id: string, sheetBase: string) {
51 let sheet = await loadStylesheet(id, sheetBase, onDependency, customCssResolver)
52
53 if (shouldRewriteUrls) {
54 sheet.content = await rewriteUrls({
55 css: sheet.content,
56 root: base,
57 base: sheet.base,
58 })
59 }
60
61 return sheet
62 },
63 }
64}
65

Callers

nothing calls this directly

Calls 2

rewriteUrlsFunction · 0.90
resolveCssIdFunction · 0.70

Tested by

no test coverage detected