Skip to content

Commit 0ba1234

Browse files
committed
[TASK] Hint at symlink creation in Copy assets chapter
Resolves: #207 Releases: main, 13.4
1 parent 8a67b57 commit 0ba1234

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Documentation/Assets/Index.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@ we are finished with the site package.
5454
If you want to work with your own theme or received a theme from a frontend
5555
developer make sure that all paths used within the theme are relative.
5656

57+
.. _theme-example-assets-symlink:
58+
59+
Symlinking Resources/Public into public/_assets
60+
===============================================
61+
62+
When creating your :ref:`Minimal site package <t3sitepackage:minimal-design>`
63+
your extension did not yet have a folder :path:`Resources/Public`. The symlink
64+
from :folder:`public/_assets` gets automatically created during Composer
65+
installation.
66+
67+
However as you newly created the folder, you must tell Composer to dump the
68+
autoload. During that process the symlinks will also be created by Composer.
69+
70+
.. code-block:: bash
71+
72+
ddev composer dump-autoload
73+
5774
.. _asset-dependencies:
5875

5976
Managing asset dependencies in real life projects

0 commit comments

Comments
 (0)