Skip to content

Commit a258120

Browse files
committed
minor #15624 Update copy-files.rst (jorluiseptor)
This PR was submitted for the 5.3 branch but it was merged into the 4.4 branch instead. Discussion ---------- Update copy-files.rst I believe the documentation is wrong. Webpack copies the images into build/images, not build/. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases 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 `5.x` for features of unreleased versions). --> Commits ------- 68c76e5 Update copy-files.rst
2 parents 5eda32c + 68c76e5 commit a258120

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/encore/copy-files.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ To render inside Twig, use the ``asset()`` function:
6363

6464
.. code-block:: html+twig
6565

66-
{# assets/images/logo.png was copied to public/build/logo.png #}
67-
<img src="{{ asset('build/logo.png') }}" alt="ACME logo">
66+
{# assets/images/logo.png was copied to public/build/images/logo.png #}
67+
<img src="{{ asset('build/images/logo.png') }}" alt="ACME logo">
6868

69-
{# assets/images/subdir/logo.png was copied to public/build/subdir/logo.png #}
70-
<img src="{{ asset('build/subdir/logo.png') }}" alt="ACME logo">
69+
{# assets/images/subdir/logo.png was copied to public/build/images/subdir/logo.png #}
70+
<img src="{{ asset('build/images/subdir/logo.png') }}" alt="ACME logo">
7171

7272
Make sure you've enabled the :ref:`json_manifest_path <load-manifest-files>` option,
7373
which tells the ``asset()`` function to read the final paths from the ``manifest.json``

0 commit comments

Comments
 (0)