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

Function rewriteCssUrls

packages/@tailwindcss-node/src/urls.ts:95–100  ·  view source on GitHub ↗
(css: string, replacer: CssUrlReplacer)

Source from the content-addressed store, hash-verified

93}
94
95function rewriteCssUrls(css: string, replacer: CssUrlReplacer): Promise<string> {
96 return asyncReplace(css, cssUrlRE, async (match) => {
97 const [matched, rawUrl] = match
98 return await doUrlReplace(rawUrl.trim(), matched, replacer)
99 })
100}
101
102async function rewriteCssImageSet(css: string, replacer: CssUrlReplacer): Promise<string> {
103 return await asyncReplace(css, cssImageSetRE, async (match) => {

Callers 1

rewriteCssImageSetFunction · 0.85

Calls 2

asyncReplaceFunction · 0.85
doUrlReplaceFunction · 0.85

Tested by

no test coverage detected