diff --git a/src/Plugin/PatternBase.php b/src/Plugin/PatternBase.php index bd773d96..f8354357 100644 --- a/src/Plugin/PatternBase.php +++ b/src/Plugin/PatternBase.php @@ -79,7 +79,7 @@ public function getLibraryDefinitions() { // Attach pattern base path to assets. if (!empty($definition['base path'])) { - $base_path = str_replace($this->root, '', $definition['base path']); + $base_path = str_replace($this->root . DIRECTORY_SEPARATOR, '', $definition['base path']); $this->processLibraries($items, $base_path); }