Skip to content

Commit 2d13ead

Browse files
authored
Update configuration.rst
1 parent ba02a07 commit 2d13ead

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

configuration.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,12 @@ files directly in the ``config/packages/`` directory.
465465
when@test:
466466
webpack_encore:
467467
strict_mode: false
468+
469+
# you can use "Yaml anchors" to share config between multiple environments (make "test" config identical to "prod")
470+
when@prod: &webpack_prod
471+
webpack_encore:
472+
# ...
473+
when@test: *webpack_prod
468474
469475
.. code-block:: xml
470476

0 commit comments

Comments
 (0)