Skip to content

[AssetMapper] Allow to define entrypoint in importmap.php #20991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nicolas-grekas opened this issue May 23, 2025 · 1 comment
Open

[AssetMapper] Allow to define entrypoint in importmap.php #20991

nicolas-grekas opened this issue May 23, 2025 · 1 comment

Comments

@nicolas-grekas
Copy link
Member

Let's document symfony/flex#1026

/cc @Jibbarth @symfony/ux

@javiereguiluz
Copy link
Member

In order to document this, please show a real example of how to use this.

For example, consider an ExampleBundle that defines assets/styles/foo.css and assets/bar.js files.

What we need to know:

  • What exact config and in which file is needed for this bundle to expose both files in Symfony apps that install this bundle?
  • Which exact statement must this bundle use in its own templates to load these assets using importmap()?
  • Which exact statement must Symfony applications using this bundle add in the templates defined in templates/ to load these assets using importmap()?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants