Introduction

Overview

Laravel Vite is a project that aims to integrate Vite as much as possible with Laravel. It consists of three parts:

  • A PHP package, which provides support for parsing Vite's manifest, Blade directives, and helper functions.
  • A Node package, which leverages Laravel's configuration to integrate with Vite's, and provides Blade file hot module replacement support.
  • A Preset, which makes it easy to install Vite in a fresh Laravel project, with a single command.

Traditional approach

Laravel comes with Laravel Mix, an abstraction of Webpack. It is a well-known and battle-tested bundler, but Vite takes a different approach to improve the experience of front-end development. You can learn the details on its documentation.

That means that Laravel Vite is a replacement for Laravel Mix.

Requirements