Data URLs broken
-
CSS Data URLs (such as in bootstrap 4) are broken when using the plugin. The fix is to add “data:” to the exclusions within the below replacement regex:
src\ScssLibrary.php:272
$css = preg_replace('#(url\((?![\'"]?(?:https?:|/))[\'"]?)#miu', '$1' . dirname($url['path']) . '/', $css);
to
$css = preg_replace('#(url\((?![\'"]?(?:https?:|/|data:))[\'"]?)#miu', '$1' . dirname($url['path']) . '/', $css);
- The topic ‘Data URLs broken’ is closed to new replies.