83 - Bundle Livewire through Vite instead of injected scripts

This commit is contained in:
myrmidex 2026-08-12 23:42:59 +02:00
parent 5b4e311d2d
commit 5f4ef40a76
5 changed files with 7 additions and 5 deletions

View file

@ -15,7 +15,6 @@
"vite": "^6.2.4" "vite": "^6.2.4"
}, },
"dependencies": { "dependencies": {
"alpinejs": "^3.14.8",
"axios": "^1.8.0" "axios": "^1.8.0"
} }
} }

View file

@ -1 +1,4 @@
import "./bootstrap"; import { Livewire } from '../../vendor/livewire/livewire/dist/livewire.esm';
import './bootstrap';
Livewire.start();

View file

@ -119,6 +119,6 @@ class="px-4 border-r border-gray-200 dark:border-gray-700 text-gray-500 dark:tex
</div> </div>
</div> </div>
@livewireScripts @livewireScriptConfig
</body> </body>
</html> </html>

View file

@ -47,6 +47,6 @@
<p>Route your feeds to the Fediverse</p> <p>Route your feeds to the Fediverse</p>
</div> </div>
</div> </div>
@livewireScripts @livewireScriptConfig
</body> </body>
</html> </html>

View file

@ -67,6 +67,6 @@
<p>Route your feeds to the Fediverse</p> <p>Route your feeds to the Fediverse</p>
</div> </div>
</div> </div>
@livewireScripts @livewireScriptConfig
</body> </body>
</html> </html>