Skip to content

Commit e15c3ec

Browse files
committed
Fix changes to Stimulus bundle recipe
Signed-off-by: Tim Goudriaan <tim@codedmonkey.com>
1 parent 261d493 commit e15c3ec

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

assets/bootstrap.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

assets/dashboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
* (and its CSS file) in your base layout (base.html.twig).
66
*/
77

8-
import './bootstrap';
8+
import './stimulus_bootstrap.js';
99

1010
import './stylesheets/dashboard-theme.css';

assets/stimulus_bootstrap.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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(
5+
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
6+
true,
7+
/\.[jt]sx?$/
8+
));
9+
110
// register any custom, 3rd party controllers here
211
// app.register('some_controller_name', SomeImportedController);

0 commit comments

Comments
 (0)