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(9mo ago)164MITTypeScriptPHP &gt;=8.2.0

Since Jan 31Pushed 9mo 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 2d 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

32

—

LowBetter than 69% of packages

Maintenance55

Moderate activity, may be stable

Popularity10

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

299d 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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M417](/packages/easycorp-easyadmin-bundle)[illuminate/session

The Illuminate Session package.

9939.9M881](/packages/illuminate-session)[symfony/ux-autocomplete

JavaScript Autocomplete functionality for Symfony

636.3M47](/packages/symfony-ux-autocomplete)[illuminate/cookie

The Illuminate Cookie package.

224.7M143](/packages/illuminate-cookie)[typo3/cms-install

TYPO3 CMS Install Tool - The Install Tool is used for installation, upgrade, system administration and setup tasks.

1812.5M571](/packages/typo3-cms-install)[api-platform/http-cache

API Platform HttpCache component

275.1M23](/packages/api-platform-http-cache)

PHPackages © 2026

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