Skip to content

Commit dcb90ea

Browse files
fix directory
1 parent 32b3d47 commit dcb90ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ScriptHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ public static function compileCSS(Event $event)
2626
}
2727

2828
$processor = new Processor($event->getIO());
29-
29+
$prefix = getcwd();
3030
foreach ($configs as $config) {
3131
if (!is_array($config)) {
3232
throw new \InvalidArgumentException('The extra.css-compiler should contain only configuration objects.');
3333
}
3434

3535
foreach ($config['input'] as $item => $value) {
36-
$processor->attachFiles(__DIR__ . "/{$value}", __DIR__ . "/{$config['output']}");
36+
$processor->attachFiles("{$prefix}/{$value}", "{$prefix}/{$config['output']}");
3737
}
3838

3939
$processor->processFiles(isset($config['format']) ? $config['format'] : 'compact');

0 commit comments

Comments
 (0)