apility/laravel-vite-components

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

v1.0.0 2022-03-14 12:20 UTC

This package is auto-updated.

Last update: 2024-10-14 17:34:56 UTC


README

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>