7.5 Admin: Assets Migration
When to Execute
Overview
π― Decision Guide
β
Option 1: Rewrite to Live Component (RECOMMENDED if you know how)
β
Option 2: Rewrite to Stimulus Controller (RECOMMENDED if you know how)
1. Create Stimulus controller
2. Register controller
3. Use in templates
Option 3: Move to assets/admin/ + Import in Entrypoint
1. Move JavaScript file to assets/admin/
2. Import in entrypoint
3. Rebuild assets
CSS/SCSS Migration
1. Move CSS to assets/admin/
2. Import in entrypoint
3. Use Bootstrap 5 variables
4. Rebuild assets
Declaring External JavaScript Dependencies
Validation
Last updated
Was this helpful?
