Files
symfony-flex-recipes/symfony/webpack-encore-bundle/1.9/assets/bootstrap.js
T
Marko KaznovacandGitHub 72d18fe640 simplify regex in the stimulus app bootstrap.js (#1002)
* simplify regex in the stimulus app bootstrap.js

use character class instead of group capture with an alternation

* simplify regex in the stimulus app bootstrap.js

for 1.6

* simplify regex in the stimulus app bootstrap.js

for 1.0
2022-02-17 17:04:33 +01:00

12 lines
422 B
JavaScript

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,
/\.[jt]sx?$/
));
// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);