PHPackages                             carbdrox/pimcore-vite-bundle - 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. carbdrox/pimcore-vite-bundle

ActivePimcore-bundle[Utility &amp; Helpers](/categories/utility)

carbdrox/pimcore-vite-bundle
============================

Pimcore Vite integration

1.1.0(1y ago)23.2kMITPHP

Since Mar 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Carbdrox/pimcore-vite-bundle)[ Packagist](https://packagist.org/packages/carbdrox/pimcore-vite-bundle)[ RSS](/packages/carbdrox-pimcore-vite-bundle/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

Pimcore Vite Bundle
===================

[](#pimcore-vite-bundle)

[![Total Downloads](https://camo.githubusercontent.com/1b71c463b8f74f7714f13ed23e95dbeb10bf5688cbf17bd1c43bfa5f6d98cda3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4361726264726f782f70696d636f72652d766974652d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/carbdrox/pimcore-vite-bundle)[![Latest Version](https://camo.githubusercontent.com/aec035c9f06c049ff80d412c4db89220891ded0c563123b88cb939153fada3ea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f4361726264726f782f70696d636f72652d766974652d62756e646c652e7376673f7374796c653d666c6174266c6162656c3d72656c65617365)](https://github.com/Carbdrox/pimcore-vite-bundle/tags)[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE)

This bundle adds a Service to your [Pimcore](https://github.com/pimcore/pimcore) project, which can resolve vite assets.

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

[](#installation)

### Using composer

[](#using-composer)

```
composer require carbdrox/pimcore-vite-bundle

```

### Enable the Bundle

[](#enable-the-bundle)

```
bin/console pimcore:bundle:enable ViteBundle

```

Usage
-----

[](#usage)

To resolve your vite assets inside twig templates you can use the function `vite('asset/path')` which accepts the asset path as parameter.

```

```

If you need to resolve your asset inside php code, you need to inject the Service `\ViteBundle\Services\ViteService::class`then you can use the method `getAsset('asset/path')` from this service, which also accepts the asset path as parameter.

```
class DefaultController extends FrontendController
{
    public function defaultAction(\ViteBundle\Services\ViteService $viteService)
    {
        $path = $viteService->getAsset('assets/js/app.js')
    }
}
```

If you want to use the hot reload functionality, you need to insert the following snippet at the bottom of your twig template.
It will insert the required script which is required by vite to enable the hot reloading.
The script tag will only be inserted if the APP\_ENV is 'dev' and you the template is not opened in editmode.

```
    {{ viteReload(editmode) | raw }}

```

Configuration
-------------

[](#configuration)

#### Automatic vite configuration

[](#automatic-vite-configuration)

It is highly recommended to use the [pimcore-vite-plugin](http://npmjs.com/package/pimcore-vite-plugin) in combination with this bundle. It will configure your vite to work in harmony with this bundle.

#### Manual vite configuration

[](#manual-vite-configuration)

If you prefer to write your vite config yourself, you need to provide some files for this bundle to work correctly.

The bundle requires you to provide a `manifest.json file, which contains all the asset paths keyed by their vite path.   This manifest.json will be loaded from `public/build/manifest.json`.

If you want to make use of the hot reload functionality, you need to provide a file named `vite-serve` in your public folder whenever your vite dev server is running.
This file must contain the url of your vite dev server e.g. `http://localhost:5173`. The file must not contain any additional text or whitespaces.

Contributing
------------

[](#contributing)

Thank you for considering contributing! The contribution guide can be found in the [CONTRIBUTING.md](CONTRIBUTING.md).

Code of Conduct
---------------

[](#code-of-conduct)

Please review and abide by the [Code of Conduct](CODE_OF_CONDUCT.md).

License
-------

[](#license)

The Pimcore Vite bundle is licensed under the [MIT license](LICENSE.md).

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance43

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Recently: every ~118 days

Total

7

Last Release

453d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b97a7edd6ba47b84b7e4519ac14507b1466e95b7421bcc0ffdbe8d0b76d5b78?d=identicon)[carbdrox](/maintainers/carbdrox)

---

Top Contributors

[![Carbdrox](https://avatars.githubusercontent.com/u/15110985?v=4)](https://github.com/Carbdrox "Carbdrox (12 commits)")

---

Tags

vitepimcorevite-bundle

### Embed Badge

![Health badge](/badges/carbdrox-pimcore-vite-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/carbdrox-pimcore-vite-bundle/health.svg)](https://phpackages.com/packages/carbdrox-pimcore-vite-bundle)
```

PHPackages © 2026

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