Skip to content

Commit

Permalink
(WIP/Experimental) Use realpath for addFile()
Browse files Browse the repository at this point in the history
  • Loading branch information
yannoff committed Mar 2, 2024
1 parent 582308f commit f9c81ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Command/Compile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit f9c81ef

Please sign in to comment.