We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 261d493 commit e15c3ecCopy full SHA for e15c3ec
assets/bootstrap.ts
assets/dashboard.ts
@@ -5,6 +5,6 @@
5
* (and its CSS file) in your base layout (base.html.twig).
6
*/
7
8
-import './bootstrap';
+import './stimulus_bootstrap.js';
9
10
import './stylesheets/dashboard-theme.css';
assets/stimulus_bootstrap.js
@@ -1,2 +1,11 @@
1
+import { startStimulusApp } from '@symfony/stimulus-bridge';
2
+
3
+// Registers Stimulus controllers from controllers.json and in the controllers/ directory
4
+export const app = startStimulusApp(require.context(
+ '@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
+ true,
+ /\.[jt]sx?$/
+));
// register any custom, 3rd party controllers here
11
// app.register('some_controller_name', SomeImportedController);
0 commit comments