Download the PHP package samuelmwangiw/laravel-vite without Composer
On this page you can find all versions of the php package samuelmwangiw/laravel-vite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download samuelmwangiw/laravel-vite
More information about samuelmwangiw/laravel-vite
Files in samuelmwangiw/laravel-vite
Package laravel-vite
Short Description A tiny package that adds @vite_assets blade directive and loads Vite assets
License MIT
Homepage https://github.com/samuelmwangiw/laravel-vite
Informations about the package laravel-vite
Laravel Vite
Since version 9.19 Laravel ships with first-party support for Vite. This package is therefore not required anymore
A tiny package that swaps out Webpack (Laravel-Mix) for Vite in you Laravel project.
This improves the developer experience by using the blazing fast Vite HMR instead of webpack compilation offered by Webpack through Laravel Mix
Installation
The easiest way to get started is on a new Laravel project.
-
Create a new project and run the following command:
-
Setup Jetstream with Inertia
-
or Breeze with Vue
-
Then install this package via composer:
-
Run
vite:install
command to setup vite - Run
npm install
to install the dependencies andnpm run dev
to start the development server -
(Optional) Since the package publishes all assets to your
App
namespace during setup, it's safe to remove the package from your dependencies - Build your amazing project
Laravel Sail
If running Sail for local development, this package provides a handy sail
npm script that runs vite --host
under the hood as vite
is only accessible via the loopback interface (127.0.0.1) by default and would therefore not be accessible in the docker container.
You may optionally publish the config if you connect to the docker host running vite via a custom address/port different from http://host.docker.internal:3000
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Samuel Mwangi
- Sebastian De Deyne whose blog inspired this package
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-vite with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^9.0