8000 Minor reword · symfony/symfony-docs@50aa694 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50aa694

Browse files
committed
Minor reword
1 parent 6e006ab commit 50aa694

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

frontend/encore/copy-files.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ files into your final output directory.
4444
+ // optional target path, relative to the output dir
4545
+ //to: 'images/[path][name].[ext]',
4646
+
47+
+ // if versioning is enabled, add the file hash too
48+
+ //to: 'images/[path][name].[hash:8].[ext]',
49+
+
4750
+ // only copy files matching this pattern
4851
+ //pattern: /\.(png|jpg|jpeg)$/
4952
+ })
@@ -52,11 +55,6 @@ This will copy all files from ``assets/images`` into ``web/build`` (the output
5255
path). If you have :doc:`versioning enabled <versioning>`, the copied files will
5356
include a hash based on their content.
5457

55-
.. note::
56-
57-
If order to use versioning with with custom target path (``to``), you need to
58-
update to path to include the file hash: ``images/[path][name].[hash:8].[ext]``.
59-
6058
To render inside Twig, use the ``asset()`` function:
6159

6260
.. code-block:: html+twig

0 commit comments

Comments
 (0)
0