Skip to content

apility/laravel-vite-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-vite-components

A Vite companion library for Laravel to be used together with @apility/vite-plugin-dev-manifest.

Installation

$ composer require apility/laravel-vite-components

Usage

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>