A Vite companion library for Laravel to be used together with @apility/vite-plugin-dev-manifest.
$ composer require apility/laravel-vite-components
Insert the <x-vite-head />
and <x-vite-body />
blade components at the end of your <head>
and <body>
.
<!DOCTYPE html>
<html>
<head>
...
<x-vite-head entry="main.js" />
</head>
<body>
...
<x-vite-body entry="main.js" />
</body>
</html>