chore: configure vite, react, and stimulus bootstrap
This commit is contained in:
2
assets/app.js
Normal file
2
assets/app.js
Normal file
@@ -0,0 +1,2 @@
|
||||
import './bootstrap.js';
|
||||
import './styles/app.css';
|
||||
6
assets/bootstrap.js
vendored
Normal file
6
assets/bootstrap.js
vendored
Normal 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?$/));
|
||||
@@ -9,6 +9,12 @@
|
||||
"enabled": false,
|
||||
"fetch": "eager"
|
||||
}
|
||||
},
|
||||
"@symfony/ux-react": {
|
||||
"react": {
|
||||
"enabled": true,
|
||||
"fetch": "eager"
|
||||
}
|
||||
}
|
||||
},
|
||||
"entrypoints": []
|
||||
|
||||
@@ -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
0
assets/styles/app.css
Normal file
Reference in New Issue
Block a user