8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58edda1 commit 59e041bCopy full SHA for 59e041b
src/Commands/BundleCommand.php
@@ -240,10 +240,12 @@ private function addFilesToZip(ZipArchive $zip): void
240
$this->finderToZip($finder, $zip);
241
242
// Why do I have to force this? please someone explain.
243
- $this->finderToZip(
244
- (new Finder)->files()
245
- ->followLinks()
246
- ->in($this->buildPath('public/build')), $zip, 'public/build');
+ if (file_exists($this->buildPath('public/build'))) {
+ $this->finderToZip(
+ (new Finder)->files()
+ ->followLinks()
247
+ ->in($this->buildPath('public/build')), $zip, 'public/build');
248
+ }
249
250
// Add .env file manually because Finder ignores VCS and dot files
251
$zip->addFile($this->buildPath('.env'), '.env');
0 commit comments