( css: string, replacer: CssUrlReplacer, )
| 2085 | UrlRewritePostcssPlugin.postcss = true |
| 2086 | |
| 2087 | function rewriteCssUrls( |
| 2088 | css: string, |
| 2089 | replacer: CssUrlReplacer, |
| 2090 | ): Promise<string> { |
| 2091 | return asyncReplace(css, cssUrlRE, async (match) => { |
| 2092 | const [matched, rawUrl] = match |
| 2093 | return await doUrlReplace(rawUrl.trim(), matched, replacer) |
| 2094 | }) |
| 2095 | } |
| 2096 | |
| 2097 | function rewriteCssDataUris( |
| 2098 | css: string, |
no test coverage detected