File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/framework/src/Console/Commands Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 66
77use Hyde \Hyde ;
88use Hyde \Facades \Config ;
9+ use Illuminate \Support \Arr ;
910use Hyde \Support \BuildWarnings ;
1011use Hyde \Console \Concerns \Command ;
1112use Hyde \Framework \Services \BuildService ;
@@ -101,6 +102,13 @@ public function runPostBuildActions(): void
101102
102103 if ($ this ->option ('run-vite ' )) {
103104 $ this ->runNodeCommand ('npm run build ' , 'Building frontend assets for production! ' );
105+
106+ /** @var \Hyde\Framework\Actions\PreBuildTasks\TransferMediaAssets $task */
107+ $ task = Arr::first ($ this ->taskService ->getRegisteredTasks (), function (string $ task ): bool {
108+ return class_basename ($ task ) === 'TransferMediaAssets ' ;
109+ });
110+
111+ (new $ task )->run ($ this ->output ); // Transfer media assets to the public directory
104112 }
105113 }
106114
You can’t perform that action at this time.
0 commit comments