13 lines
517 B
PHP
13 lines
517 B
PHP
@php
|
|
$viteManifest = public_path('build-communication/manifest.json');
|
|
$viteHot = file_exists(storage_path('vite.hot'))
|
|
|| file_exists(public_path('hot'))
|
|
|| file_exists(base_path('Modules/Communication/hot'));
|
|
$hasVite = $viteHot || file_exists($viteManifest);
|
|
@endphp
|
|
@if ($hasVite)
|
|
{{ module_vite('build-communication', $entry) }}
|
|
@else
|
|
<script>console.warn('[Communication] Vue assets not built. Run: cd Modules/Communication && npm install && npm run build');</script>
|
|
@endif
|