diff --git a/package.json b/package.json index 866a18e4..85982437 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,9 @@ "private": true, "type": "module", "scripts": { - "build": "vite build", - "dev": "vite" + "build": "vite build", + "dev": "vite", + "dev:all": "concurrently \"php artisan serve\" \"php artisan queue:work\" \"php artisan reverb:start\" \"npm run dev\"" }, "devDependencies": { "@tailwindcss/forms": "^0.5.7", diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index deb2e10c..30c8d9eb 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -1,12 +1,7 @@ import axios from 'axios'; + window.axios = axios; window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; -/** - * Echo exposes an expressive API for subscribing to channels and listening - * for events that are broadcast by Laravel. Echo and event broadcasting - * allow your team to quickly build robust real-time web applications. - */ - import './echo'; diff --git a/resources/views/layouts/landing.blade.php b/resources/views/layouts/landing.blade.php index c142900e..c1793f4f 100644 --- a/resources/views/layouts/landing.blade.php +++ b/resources/views/layouts/landing.blade.php @@ -3,9 +3,9 @@ - - @vite(['resources/css/app.css', 'resources/js/app.js']) @include('layouts._partials.head') + @vite([ 'resources/js/app.js']) + {{-- Livewire styles --}} @livewireStyles