From f9c81efeaacab97b566c0865f4ec29f9a2b4ff0d Mon Sep 17 00:00:00 2001 From: Yannoff Date: Sat, 2 Mar 2024 18:20:24 +0100 Subject: [PATCH] (WIP/Experimental) Use realpath for addFile() --- src/Command/Compile.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Command/Compile.php b/src/Command/Compile.php index 24100a8..17ec949 100644 --- a/src/Command/Compile.php +++ b/src/Command/Compile.php @@ -97,11 +97,12 @@ protected function addDirectory(string $directory, string $extensions = null) * Add a single file to the archive builder * * @param string $file + * @param bool $$minify */ - protected function addFile(string $file) + protected function addFile(string $file, string $minify = true) { $this->info('+ ' . $file, 'grey'); - $this->builder->addFile($file); + $this->builder->addFile(realpath($file), $file, $minify); } /**