Skip to content

Commit f62401a

Browse files
Update advanced-config.rst
I think the documentation is missing the manifest definition step
1 parent 395d48d commit f62401a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

frontend/encore/advanced-config.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,21 @@ Next, define the output directories of each build:
118118
firstConfig: '%kernel.project_dir%/public/first_build'
119119
secondConfig: '%kernel.project_dir%/public/second_build'
120120
121+
122+
Also define the asset manifests for each build:
123+
124+
.. code-block:: yaml
125+
126+
# config/packages/assets.yaml
127+
framework:
128+
assets:
129+
packages:
130+
first_build:
131+
json_manifest_path: '%kernel.project_dir%/public/first_build/manifest.json'
132+
second_build:
133+
json_manifest_path: '%kernel.project_dir%/public/second_build/manifest.json'
134+
135+
121136
Finally, use the third optional parameter of the ``encore_entry_*_tags()``
122137
functions to specify which build to use:
123138

0 commit comments

Comments
 (0)