-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New section about JSON file manifest strategy #9548
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great - thanks for your contribution!
Could you additionally update frontend/encore/versioning.rst to link through to this section to "read more" about asset versioning?
I know when I was getting started with Encore it would have been helpful 👍
components/asset.rst
Outdated
|
||
Use the :class:`Symfony\\Component\\Asset\\VersionStrategy\\JsonManifestVersionStrategy` | ||
to take advantage of the strategy used by popular tools such as `Webpack | ||
<https://webpack.js.org/>`_, which generate a JSON file mapping all source file names to their corresponding output file. For example:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which generates
Thanks for your feedback! I will update the "learn more" section of Encore Component too! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomtomau do you think we should add a link to Encore Versioning documentation in the asset's doc "Learn More" section?
Learn more
----------
* :doc:`frontend/encore/versioning`
@jeremyjumeau thanks for this nice contribution! We merged it on 3.4 branch. |
…au, javiereguiluz) This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #9548). Discussion ---------- New section about JSON file manifest strategy @see https://symfony.com/blog/new-in-symfony-3-3-manifest-based-asset-versioning <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- b8a67a4 Added a missing comma 3266473 Reword b33168a Link to the asset component documentation e0ed723 Fix typo 3ef51fc New section about JSON file manifest strategy
@see https://symfony.com/blog/new-in-symfony-3-3-manifest-based-asset-versioning