Skip to content

Update encore/copy-files.rst: add note about using versioning with custom target path #10792

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

Merged
merged 1 commit into from
Jan 3, 2019
Merged

Update encore/copy-files.rst: add note about using versioning with custom target path #10792

merged 1 commit into from
Jan 3, 2019

Conversation

mhujer
Copy link
Contributor

@mhujer mhujer commented Dec 18, 2018

Improving https://symfony.com/doc/current/frontend/encore/copy-files.html#referencing-image-files-from-a-template

If the versioning is enabled in Encore and you want to use custom target path, you need to manually include the hash in the target filename.

@javiereguiluz javiereguiluz added this to the 3.4 milestone Dec 20, 2018
@javiereguiluz javiereguiluz merged commit 1a33da0 into symfony:3.4 Jan 3, 2019
javiereguiluz added a commit that referenced this pull request Jan 3, 2019
…oning with custom target path (mhujer)

This PR was merged into the 3.4 branch.

Discussion
----------

Update encore/copy-files.rst: add note about using versioning with custom target path

Improving https://symfony.com/doc/current/frontend/encore/copy-files.html#referencing-image-files-from-a-template

If the versioning is enabled in Encore and you want to use custom target path, you need to manually include the hash in the target filename.

<!--

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
-------

1a33da0 Update encore/copy-files.rst: add note about using versioning with custom target path
@javiereguiluz
Copy link
Member

@mhujer thanks and congrats on your first Symfony Docs contribution! While merging we reworded it a bit to include your proposal inside the code example. We usually do that to make things easier to follow and put the explanations right in the code examples (when possible). Thanks!

nikophil pushed a commit to nikophil/symfony-docs that referenced this pull request Jan 3, 2019
…g versioning with custom target path (mhujer)

This PR was merged into the 3.4 branch.

Discussion
----------

Update encore/copy-files.rst: add note about using versioning with custom target path

Improving https://symfony.com/doc/current/frontend/encore/copy-files.html#referencing-image-files-from-a-template

If the versioning is enabled in Encore and you want to use custom target path, you need to manually include the hash in the target filename.

<!--

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
-------

1a33da0 Update encore/copy-files.rst: add note about using versioning with custom target path
@mhujer mhujer deleted the encore-copy-files-versioning branch January 3, 2019 14:07
@mhujer
Copy link
Contributor Author

mhujer commented Jan 3, 2019

@javiereguiluz Awesome, thanks! 👍

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.

3 participants