File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ To render inside Twig, use the ``asset()`` function:
63
63
64
64
.. code-block :: html+twig
65
65
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">
68
68
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">
71
71
72
72
Make sure you've enabled the :ref: `json_manifest_path <load-manifest-files >` option,
73
73
which tells the ``asset() `` function to read the final paths from the ``manifest.json ``
You can’t perform that action at this time.
0 commit comments