PHPackages                             guihigashi/simple-vite-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. guihigashi/simple-vite-laravel

ActiveLibrary[Templating &amp; Views](/categories/templating)

guihigashi/simple-vite-laravel
==============================

A Blade directive for Vite/React assets

1.0.4(4y ago)1241Apache-2.0PHPPHP ^8.0.2

Since Feb 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/guihigashi/simple-vite-laravel)[ Packagist](https://packagist.org/packages/guihigashi/simple-vite-laravel)[ Docs](https://github.com/guihigashi/simple-vite-laravel)[ RSS](/packages/guihigashi-simple-vite-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

A Blade directive for Vite/React assets
=======================================

[](#a-blade-directive-for-vitereact-assets)

[![Latest Stable Version](https://camo.githubusercontent.com/1f61132ffdb37c0c848289018662946d38c369b8e5eedd791af4eb2c81f57601/68747470733a2f2f706f7365722e707567782e6f72672f677569686967617368692f73696d706c652d766974652d6c61726176656c2f76)](https://packagist.org/packages/guihigashi/simple-vite-laravel)[![Total Downloads](https://camo.githubusercontent.com/4c6c207d977a15a712054c6b7795ea6017c9a424f72a06a79d13c9353823f578/68747470733a2f2f706f7365722e707567782e6f72672f677569686967617368692f73696d706c652d766974652d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/guihigashi/simple-vite-laravel)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require guihigashi/simple-vite-laravel
```

Usage
-----

[](#usage)

Include `@simple_vite` in your `app.blade.html` to inject `` and ``tags based on the value of `APP_ENV` (`production` or else). If you use `php artisan serve --host=0.0.0.0`, also use `yarn dev --host`.

The defaults are based on this `vite.config.ts`:

```
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"

export default defineConfig(({ command }) => ({
    base: command === "serve" ? "" : "/dist/",
    publicDir: false,
    build: {
        manifest: true,
        outDir: "public/dist",
        polyfillModulePreload: false,
        rollupOptions: {
            input: "resources/scripts/main.tsx",
        },
    },
    plugins: [react()],
}))
```

If you want to change defaults:

```
php artisan vendor:publish --tag=simple-vite

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

5

Last Release

1495d ago

PHP version history (2 changes)1.0.0PHP ^7.3|^8.0.2

1.0.4PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/300b8ab6f29669a876c79d94743e9698e84280484d857a076eecd97db88b2bbd?d=identicon)[guihigashi](/maintainers/guihigashi)

---

Top Contributors

[![guihigashi](https://avatars.githubusercontent.com/u/7825153?v=4)](https://github.com/guihigashi "guihigashi (8 commits)")

---

Tags

laravelvite

### Embed Badge

![Health badge](/badges/guihigashi-simple-vite-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/guihigashi-simple-vite-laravel/health.svg)](https://phpackages.com/packages/guihigashi-simple-vite-laravel)
```

###  Alternatives

[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[stijnvanouplines/blade-country-flags

A package to easily make use of country flags in your Laravel Blade views.

26307.2k6](/packages/stijnvanouplines-blade-country-flags)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18299.2k7](/packages/technikermathe-blade-lucide-icons)[saade/blade-iconsax

A package to easily make use of Iconsax in your Laravel Blade views.

21138.5k](/packages/saade-blade-iconsax)[mckenziearts/blade-untitledui-icons

A package to easily make use of UntitledUI icons in your Laravel Blade views.

16104.9k5](/packages/mckenziearts-blade-untitledui-icons)[webup/laravel-form

A Laravel package to help build forms.

147.2k1](/packages/webup-laravel-form)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
