diff --git a/src/Commands/Build.php b/src/Commands/Build.php index 511cfa61d..3d4107364 100644 --- a/src/Commands/Build.php +++ b/src/Commands/Build.php @@ -237,6 +237,10 @@ private function copyIcons(): void $targetDirectory = base_path('vendor/area17/twill/frontend/icons-custom'); $originalIcons = config('twill.block_editor.core_icons'); + if (!file_exists($targetDirectory)) { + mkdir($targetDirectory); + } + foreach (config('twill.block_editor.directories.source.icons') as $iconDirectory) { // We do not want to process original icons. if ($iconDirectory !== $originalIcons) {