Skip to content
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 built-in asset management strategies #15

Open
martinbroos opened this issue Apr 14, 2022 · 0 comments
Open

Use built-in asset management strategies #15

martinbroos opened this issue Apr 14, 2022 · 0 comments

Comments

@martinbroos
Copy link
Member

In symfony zelf zitten al weer een tijdje opties om zelf de asset versions te managen, ook doormiddel van het uitlezen van een webpack stats json file. Wellicht kan dat deze bundle een stuk versimpelen ?

Zie: https://symfony.com/doc/current/components/asset.html#json-file-manifest

Voor assets die buiten webpack omgaan bv uploads wil je ook een asset version bij houden. Wellicht dat daar ook al wel een bestaande Version Strategy voor is die kijkt naar of het bestand gewijzigd is. Nu gebruiken we daar vaak een custom twig functie voor: https://github.com/freshheads/roan/blob/develop/src/App/Application/Shared/Twig/EnhancedAssetExtension.php

Is dit een idee om eens in te duiken of heeft het geen voordelen ?

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

No branches or pull requests

1 participant