);
// Need to iterate files, to generate source map if configured.
foreach ($definition->
getFiles() as $file) { if (!
file_exists($file)) { continue;
} // Creates the url for the compiler, this url will be prepended to each relative path.
// The url is additionally used for the source map generation.
$url =
$this->
formatPathToUrl($file);
$this->compiler->
compile($file,
$url);
} } /**
* Builds the less configuration.
* The function loads first the inheritance config of the passed
* template and shop instance.
* After the theme configuration is set into the less compiler,
* the function throws the event `Theme_Compiler_Collect_Plugin_Less_Config`
* to allow plugins to override the theme configuration.
*
* @throws Exception
*/