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(6mo ago)160↓100%MITTypeScriptPHP &gt;=8.2.0

Since Jan 31Pushed 6mo 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 1mo 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

35

—

LowBetter than 79% of packages

Maintenance66

Regular maintenance activity

Popularity12

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

209d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec4f5da02e93f71d9e7537a583a75161176e57becea659ce5247e99d3c4147fb?d=identicon)[MrEssex](/maintainers/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.

9937.4M753](/packages/illuminate-session)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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