(url: string)
| 150 | } |
| 151 | |
| 152 | export function getCSSBaseBath(url: string): string { |
| 153 | const cssURL = parseURL(url); |
| 154 | return `${cssURL.origin}${cssURL.pathname.replace(/\?.*$/, '').replace(/(\/)([^\/]+)$/i, '$1')}`; |
| 155 | } |
| 156 | |
| 157 | export function replaceCSSRelativeURLsWithAbsolute($css: string, cssBasePath: string): string { |
| 158 | return $css.replace(cssURLRegex, (match) => { |
no test coverage detected