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 e26941d commit 2a480c2Copy full SHA for 2a480c2
packages/framework/resources/views/layouts/scripts.blade.php
@@ -1,5 +1,7 @@
1
{{-- The compiled Vite scripts --}}
2
-@if(Asset::exists('app.js'))
+@if(Vite::running())
3
+ {{ Vite::assets(['resources/assets/app.js']) }}
4
+@elseif(Asset::exists('app.js'))
5
<script defer src="{{ Asset::get('app.js') }}"></script>
6
@endif
7
0 commit comments