(css: string, replacer: CssUrlReplacer)
| 93 | } |
| 94 | |
| 95 | function 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 | |
| 102 | async function rewriteCssImageSet(css: string, replacer: CssUrlReplacer): Promise<string> { |
| 103 | return await asyncReplace(css, cssImageSetRE, async (match) => { |
no test coverage detected