From dcb90ea5380d2003dfc3cb1588e100771ea8c8ac Mon Sep 17 00:00:00 2001 From: Eugene Matvejev Date: Tue, 14 Jun 2016 18:04:57 +0300 Subject: [PATCH] fix directory --- ScriptHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ScriptHandler.php b/ScriptHandler.php index ed4cfd9..74494f9 100644 --- a/ScriptHandler.php +++ b/ScriptHandler.php @@ -26,14 +26,14 @@ public static function compileCSS(Event $event) } $processor = new Processor($event->getIO()); - + $prefix = getcwd(); foreach ($configs as $config) { if (!is_array($config)) { throw new \InvalidArgumentException('The extra.css-compiler should contain only configuration objects.'); } foreach ($config['input'] as $item => $value) { - $processor->attachFiles(__DIR__ . "/{$value}", __DIR__ . "/{$config['output']}"); + $processor->attachFiles("{$prefix}/{$value}", "{$prefix}/{$config['output']}"); } $processor->processFiles(isset($config['format']) ? $config['format'] : 'compact');