-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
use asset-mapper asset package if available #6665
use asset-mapper asset package if available #6665
Conversation
0ea0deb
to
f988f9b
Compare
Nice to have it |
Thanks. I like this ... but I'm waiting a bit before merging it because I want to think carefully if this could break something for existing apps. |
hi @javiereguiluz , thanks for the feedback
I believe this won't be an issue, additional hash from asset-mapper was there by default
asset-mapper is not a hard dependency, https://github.com/EasyCorp/EasyAdminBundle/pull/6665/files#diff-a7bf72e66282b81a3685555cf2fa6fbb80ba61953539e8d6e80b603eb58e0709R399 it will ignore if the asset_mapper is not installed
I'm lost here, what limitation are we trying to fix? because EA uses its own asset package so I used composition here so EA owned asset-package can use asset mapper and not make any issue if asset-mapper is not installed another thing this PR solved is we can serve the assets from CDN |
sorry for incomplete statement. here is the case. a Symfony apps with EasyAdmin + using FrankenPHP as the app server asset-mapper supports this out of the box. run |
by default, asset-mapper has all bundles assets https://symfony.com/doc/current/frontend/asset_mapper.html#third-party-bundles-custom-asset-paths
we can skip
assets:install
command to copy the assets to public dir and reuse what asset-mapper has done