chore: configure vite, react, and stimulus bootstrap

This commit is contained in:
thibaud-leclere
2026-03-28 13:11:41 +01:00
parent bd3996f4a9
commit f7a9be6a38
7 changed files with 58 additions and 5 deletions

2
assets/app.js Normal file
View File

@@ -0,0 +1,2 @@
import './bootstrap.js';
import './styles/app.css';

6
assets/bootstrap.js vendored Normal file
View File

@@ -0,0 +1,6 @@
import { startStimulusApp } from '@symfony/stimulus-bundle';
import { registerReactControllerComponents } from '@symfony/ux-react';
const app = startStimulusApp();
registerReactControllerComponents(require.context('./react/controllers', true, /\.(j|t)sx?$/));

View File

@@ -9,6 +9,12 @@
"enabled": false,
"fetch": "eager"
}
},
"@symfony/ux-react": {
"react": {
"enabled": true,
"fetch": "eager"
}
}
},
"entrypoints": []

View File

@@ -1,5 +0,0 @@
import { startStimulusApp } from '@symfony/stimulus-bundle';
const app = startStimulusApp();
// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);

0
assets/styles/app.css Normal file
View File