@php $buildPath = 'vi_new'; $manifestPath = public_path($buildPath ? "$buildPath/.vite/manifest.json" : ".vite/manifest.json"); if (!file_exists($manifestPath)) { $manifestPath = public_path($buildPath ? "$buildPath/manifest.json" : "manifest.json"); } $manifest = []; if (file_exists($manifestPath)) { $manifest = json_decode(file_get_contents($manifestPath), true); } $entryPoint = 'src/main.jsx'; $jsFile = $manifest[$entryPoint]['file'] ?? null; $cssFiles = $manifest[$entryPoint]['css'] ?? []; function getAssetUrl($path, $buildPath) { return secure_asset($buildPath ? "$buildPath/$path" : $path); } @endphp