File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,21 +13,23 @@ trim_trailing_whitespace = true
1313[* .css ]
1414indent_size = 2
1515
16- [* .js ]
16+ [* .{js,ts} ]
1717indent_size = 2
1818
1919[* .md ]
2020trim_trailing_whitespace = false
2121
22- [* .ts ]
23- indent_size = 2
24-
2522[* .twig ]
2623indent_size = 2
2724
2825[* .yaml ]
2926indent_size = 2
3027
31- # Override indent size for YAML files that are managed with Symfony Flex recipes
28+ # Symfony Flex
29+ # Use custom indent for files managed by Symfony Flex recipes
30+
31+ [{assets/stimulus_bootstrap.js,assets/controllers/csrf_protection_controller.js} ]
32+ indent_size = 4
33+
3234[config/** .yaml ]
3335indent_size = 4
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55 * (and its CSS file) in your base layout (base.html.twig).
66 */
77
8- import './bootstrap ' ;
8+ import './stimulus_bootstrap.js ' ;
99
1010import './stylesheets/dashboard-theme.css' ;
Original file line number Diff line number Diff line change 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+ / \. [ j t ] s x ? $ /
8+ ) ) ;
9+
110// register any custom, 3rd party controllers here
211// app.register('some_controller_name', SomeImportedController);
You can’t perform that action at this time.
0 commit comments