Replies: 1 comment · 4 replies
-
|
I would probably split this by entrypoints, not by As I understand it, I would do something like this: {# frontend layout #}
{{ importmap('frontend') }}
{# admin layout #}
{{ importmap('admin') }}Then each entrypoint can import its own bootstrap/controllers: // assets/frontend.js
import './frontend/bootstrap.js';
// assets/admin.js
import './admin/bootstrap.js';If both sides can use the normal Symfony UX loader, I would keep it. If the dependencies really conflict, I would make two small bootstrap files and register only the controllers needed for each side. So I would use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I like to manage differents stimulus controllers between my backend & frontend (cause conflicts between libs on backend/frontend, ex: different bootstrap, ...) and possible different Importmap.
We can have multiple paths: https://symfony.com/bundles/StimulusBundle/current/index.html#configuration bug not controllers.json?
What is the best way to manage this?
Beta Was this translation helpful? Give feedback.
All reactions