symfony / webapp-pack

A recommended pack to install on top of the default Symfony skeleton
19 stars 8 forks source link

Adding AssetMapper & Stimulus+Turbo #13

Closed weaverryan closed 9 months ago

weaverryan commented 9 months ago

Hi!

The webapp already installs Twig & is aimed at "web apps" that return HTML. So, in 6.4, we should also give them a proper asset setup with AssetMapper, Stimulus & Turbo.

I've just tested this locally - it works great. All I had to do was make:controller Home then to go /home to see the site with JS & CSS already loaded. If I had a 2nd page and link, the navigation is AJAX-powered 🥳 .

Cheers!

nicolas-grekas commented 5 months ago

FTR I added a conflict with framework-bundle < 6.3 since asset-mapper wasn't available before.