protected function postCompile($content) { $content = parent::postCompile($content); if (($baseUrl = $this->getBaseUrl()) !== null) { $content = str_replace('url(', 'url(' . $baseUrl, $content); } return $content; }