return str_replace([rtrim($this->rootDir, '/\\'
), '\\', '//'
],
[$shop->
getBasePath(), '/', '/'
],
$path);
} /**
* Returns the directory path to the compiler source map.
*
* @return string
*/
public function getSourceMapPath() { return $this->
getCacheDirectory() . DIRECTORY_SEPARATOR . 'css.source.map';
} /**
* Returns the shop url to the generated compiler source map.
*
* @return string
*/
public function getSourceMapUrl(Shop\Shop
$shop) { return $this->
formatPathToUrl($this->
getSourceMapPath(),
$shop);
}