Skip to content
Merged
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['8.1', '8.2']
neos-versions: ['8.3']
php-versions: ['8.3']
neos-versions: ['9.0']
dependencies: ['highest']

defaults:
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Networkteam.Neos.Vite

## Compatibility

| NeosCMS | Plugin |
|---------|--------|
| >= 9.0 | 0.4.x |
| 8.x | 0.3.x |

## Installation

Go to your site package:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Root.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ prototype(Networkteam.Neos.Vite:Asset) {

# We get the current site package key either from a context variable (e.g. for Monocle) or the current node.
# It is used to interpolate the outputPathPattern and select a different Vite server configuration (e.g. for multi-site setups).
sitePackageKey = ${sitePackageKey || node.context.currentSite.siteResourcesPackageKey}
sitePackageKey = ${sitePackageKey || Neos.Site.findBySiteNode(site).siteResourcesPackageKey}

outputPathPattern = 'resource://{sitePackageKey}/Public/Dist'
manifest = '.vite/manifest.json'
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
"type": "neos-package",
"description": "Integrate Vite for asset bundling into Neos CMS",
"require": {
"neos/neos": "^8 || ^9",
"neos/neos": "^9.0",
"ext-json": "*"
},
"require-dev": {
"neos/contentgraph-doctrinedbaladapter": "*"
},
"license": "MIT",
"autoload": {
"psr-4": {
"Networkteam\\Neos\\Vite\\": "Classes"
Expand Down