start_sf5_project_reboot/app/assets/stimulus/bootstrap.js

12 lines
422 B
JavaScript
Raw Permalink Normal View History

2021-04-17 21:15:30 +00:00
import { startStimulusApp } from '@symfony/stimulus-bridge';
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
export const app = startStimulusApp(require.context(
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
true,
2022-10-01 15:50:16 +00:00
/\.[jt]sx?$/
2021-04-17 21:15:30 +00:00
));
// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);