PHPackages                             mressex/cubex-vite-plugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mressex/cubex-vite-plugin

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mressex/cubex-vite-plugin
=========================

Cubex Plugin for Vite

0.0.10(8mo ago)163MITTypeScriptPHP &gt;=8.2.0

Since Jan 31Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/MrEssex/cubex-vite-plugin)[ Packagist](https://packagist.org/packages/mressex/cubex-vite-plugin)[ RSS](/packages/mressex-cubex-vite-plugin/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (3)Versions (11)Used By (0)

Cubex Vite Plugin
=================

[](#cubex-vite-plugin)

Introduction
------------

[](#introduction)

[Vite](https://vitejs.dev/) is a modern frontend tool that delivers an extremely fast development experience. It includes features like lightning-fast cold server start, instant hot module replacement, and optimized builds for production.

This plugin integrates Vite into Cubex to provide a seamless development experience.

This project is a modified version of the [CodeIgniter Vite Plugin](https://github.com/monster010/codeigniter-vite-plugin)which in turn is based on the [Laravel Vite Plugin](https://github.com/laravel/vite-plugin)

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

[](#installation)

Install with composer:

```
composer require mressex/cubex-vite-plugin
```

Create a `vite.config.js` file in the root of your project:

```
// vite.config.js
import { defineConfig } from 'vite';
import cubex from "cubex-vite-plugin";

export default defineConfig({
    plugins: [
        cubex([
            'assets/scss/index.scss',
            'assets/ts/index.ts',
        ]),
    ],
});

```

Getting Started
---------------

[](#getting-started)

- Install your node dependencies: `npm install`
- Start vite server: `npm run dev`

### Add to the Cubex DI, also requires Dispatch to be setup

[](#add-to-the-cubex-di-also-requires-dispatch-to-be-setup)

```
$cubex->share(Vite::class, $cubex->resolve(Vite::class, $ctx->getProjectRoot()));
```

### Loading Your Scripts and Styles

[](#loading-your-scripts-and-styles)

Register and css or ts files in the `vite.config.js` file. The plugin will automatically load the files in the development environment and use the production build in the production environment.

pass true if you want to include the Vite client for Hot Mode Reloading

```
protected function _registerResources(Vite $vite): void
  {
    $vite(['assets/scss/index.scss', 'assets/ts/index.ts'], true);
  }
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance60

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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 ~28 days

Recently: every ~37 days

Total

10

Last Release

254d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5024348?v=4)[Kyle Essex](/maintainers/MrEssex)[@MrEssex](https://github.com/MrEssex)

---

Top Contributors

[![MrEssex](https://avatars.githubusercontent.com/u/5024348?v=4)](https://github.com/MrEssex "MrEssex (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mressex-cubex-vite-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/mressex-cubex-vite-plugin/health.svg)](https://phpackages.com/packages/mressex-cubex-vite-plugin)
```

###  Alternatives

[illuminate/session

The Illuminate Session package.

9938.5M822](/packages/illuminate-session)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[symfony/ux-autocomplete

JavaScript Autocomplete functionality for Symfony

635.5M36](/packages/symfony-ux-autocomplete)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)[numero2/contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data

121.6k](/packages/numero2-contao-storelocator)

PHPackages © 2026

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