Skip to content

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

Closed
wants to merge 5 commits into from

Conversation

jeremyjumeau
Copy link
Contributor

Copy link
Contributor

@tomtomau tomtomau left a 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 👍


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::
Copy link
Contributor

@tomtomau tomtomau Apr 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which generates

@jeremyjumeau
Copy link
Contributor Author

Thanks for your feedback! I will update the "learn more" section of Encore Component too!

Copy link
Contributor Author

@jeremyjumeau jeremyjumeau left a 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`

@javiereguiluz javiereguiluz added this to the 3.4 milestone May 17, 2018
@javiereguiluz
Copy link
Member

@jeremyjumeau thanks for this nice contribution! We merged it on 3.4 branch.

javiereguiluz added a commit that referenced this pull request May 17, 2018
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants