PHPackages                             dima-support/silverstripe-vite - 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. dima-support/silverstripe-vite

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

dima-support/silverstripe-vite
==============================

1.0.4(10mo ago)1245↓73.3%MITPHPPHP ^8.1

Since Dec 14Pushed 1w ago1 watchersCompare

[ Source](https://github.com/Dima-Support/silverstripe-vite)[ Packagist](https://packagist.org/packages/dima-support/silverstripe-vite)[ RSS](/packages/dima-support-silverstripe-vite/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (8)Used By (0)

Silverstripe Vite Plugin
========================

[](#silverstripe-vite-plugin)

this package is a fork of original: passchn/silverstripe-vite. note this package may undergo some development overtime so be sure you lock to the version that works in your application. This package is compatible with both nginx and appache servers out of the box.

For local development be sure to run `npm run watch` in the `themes/template` folder. if using homestead **install npm and run watch from your windows machine** to generate correct symlinks and add ability to watch file changes. To thus far no option for `npm run dev` on homestead, might work on Xamp or Mamp but not tried yet.

For feature requests drop a PR or send a message. Enjoy :)

Silverstripe Version support
----------------------------

[](#silverstripe-version-support)

- `0.0.5` supports Silverstripe 4.x | php 7.4
- `^1.0` supports Silverstripe 4.x | php 8.1
- `^1.0.1` supports Silverstripe 5.x. | php 8.1
- `^1.0.2` supports Silverstripe 6.x. | ^php 8.3
- `^1.0.3` supports Silverstripe 6.x. | ^php 8.3 | changed dataExtension to Extension
- `^1.0.4` supports Silverstripe 6.x. | ^php 8.3 | changed ViewableData to ModelData

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

[](#installation)

```
composer require dima-support/silverstripe-vite

```

In your `mysite.yml`:

```
Page:
  extensions:
    - ViteHelper\Vite\ViteDataExtension

```

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

[](#configuration)

You can override the default config in your `mysite.yml`:

```
ViteHelper\Vite\ViteHelper:
  forceProductionMode: false
  devHostNeedle: $_SERVER['HTTP_HOST']
  devPort: 3000
  jsSrcDirectory: '/public/_resources/themes/template/src/js/'
  mainJS: 'main.js'
  manifestDir: '/public/manifest.json'

```

*ViteHelper Config setting options:*

- If you set `forceProductionMode` to true, the build files (created after running `vite build`) will be served.
- Set the `devHostNeedle` to distinguish your live site from your local environment, e.g `localhost:8080`, `mysite.test` or `127.0.0.1`.
    - **Note:** The vite dev server must also be running.
- Set the `devPort` to the port of the vite dev server, e.g. `3000` – the vite port will be shown in the terminal when running the dev server. To set a fixed port (recommended), remember to also set it in the [vite config](https://github.com/brandcom/silverstripe-vite/wiki/example-vite-config) - under `server`. The port in both configs must always match.
- Define the `mainJS` entry point to where your applications script file is located.
    - E.g., if you use TypeScript, change the `mainJs` prop to `"main.ts"`.
- Define the `manifestDir` for where the manifest file will be located.

Usage
-----

[](#usage)

Insert JS / CSS tags in your main template, e.g., `Page.ss`:

```

    ...
    $Vite.HeaderTags.RAW

    ...
    $Vite.BodyTags.RAW

```

Vite config
-----------

[](#vite-config)

The config must match the `vite.config.js`. You need to **?flush** after making changes to yml configs.

Take a look at the [ViteHelper.php](https://github.com/passchn/silverstripe-vite/blob/master/src/Vite/ViteHelper.php) for more Information.

The config from your vite.config.js or vite.config.ts must match your ViteHelper config for this plugin.

See this [example vite.config.ts](https://github.com/brandcom/silverstripe-vite/wiki/example-vite-config) for default configuration.

**Note:** When using vite below `2.9.0`, the server config will be different. [See this config](https://github.com/brandcom/silverstripe-vite/wiki/example-vite-config#vite-below-290).

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance80

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

6

Last Release

300d ago

Major Versions

0.0.5 → 1.0.22025-09-05

PHP version history (2 changes)1.0.0PHP ^8.1

0.0.5PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/cca5d03babb8ea6ebd7fc7c9331b09fee50f36105f5d5f818a40cbc1712502cb?d=identicon)[QU1CK-R3ST4RT](/maintainers/QU1CK-R3ST4RT)

![](https://www.gravatar.com/avatar/5a866e8a330b9413f99ce1908a433bbe42240187d1646a73fd2acbbb8091dfb4?d=identicon)[Dima Support](/maintainers/Dima%20Support)

---

Top Contributors

[![dannyDIMA](https://avatars.githubusercontent.com/u/144783166?v=4)](https://github.com/dannyDIMA "dannyDIMA (6 commits)")[![DimaTerra](https://avatars.githubusercontent.com/u/126793426?v=4)](https://github.com/DimaTerra "DimaTerra (4 commits)")[![QU1CK-R3ST4RT](https://avatars.githubusercontent.com/u/36001957?v=4)](https://github.com/QU1CK-R3ST4RT "QU1CK-R3ST4RT (4 commits)")[![TiesBerendsen](https://avatars.githubusercontent.com/u/103115542?v=4)](https://github.com/TiesBerendsen "TiesBerendsen (1 commits)")

---

Tags

composer-packagephp8silverstripe-modulevite

### Embed Badge

![Health badge](/badges/dima-support-silverstripe-vite/health.svg)

```
[![Health](https://phpackages.com/badges/dima-support-silverstripe-vite/health.svg)](https://phpackages.com/packages/dima-support-silverstripe-vite)
```

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/sharedraftcontent

Share draft page content with non-CMS users

21424.1k12](/packages/silverstripe-sharedraftcontent)

PHPackages © 2026

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