8000 minor #10672 Documentation: copy-files.rst: fix missing code-block (c… · symfony/symfony-docs@aa698f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit aa698f3

Browse files
committed
minor #10672 Documentation: copy-files.rst: fix missing code-block (chteuchteu)
This PR was submitted for the 4.1 branch but it was squashed and merged into the 3.4 branch instead (closes #10672). Discussion ---------- Documentation: copy-files.rst: fix missing code-block The latest code block in [Copying & Referencing Images](https://symfony.com/doc/current/frontend/encore/copy-files.html) is missing a `code-block` Commits ------- a98e0d8 Documentation: copy-files.rst: fix missing code-block
2 parents 4068da5 + a98e0d8 commit aa698f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/encore/copy-files.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ files into your final output directory.
4040
4141
+ .copyFiles({
4242
+ from: './assets/images',
43-
+
43+
+
4444
+ // optional target path, relative to the output dir
4545
+ //to: 'images/[path][name].[ext]',
4646
+
@@ -54,6 +54,8 @@ include a hash based on their content.
5454

5555
To render inside Twig, use the ``asset()`` function:
5656

57+
.. code-block:: html+twig
58+
5759
{# assets/images/logo.png was copied to web/build/logo.png #}
5860
<img src="{{ asset('build/logo.png') }}"
5961

0 commit comments

Comments
 (0)
0