@if (Route::has('login')) @endif
Laravel
@vite(['resources/js/script.js']);