We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 85eebc4 + 0718196 commit 5d197e7Copy full SHA for 5d197e7
configuration.rst
@@ -461,6 +461,13 @@ files directly in the ``config/packages/`` directory.
461
webpack_encore:
462
strict_mode: false
463
464
+ # YAML syntax allows to reuse contents using "anchors" (&some_name) and "aliases" (*some_name).
465
+ # In this example, 'test' configuration uses the exact same configuration as in 'prod'
466
+ when@prod: &webpack_prod
467
+ webpack_encore:
468
+ # ...
469
+ when@test: *webpack_prod
470
+
471
.. code-block:: xml
472
473
<!-- config/packages/webpack_encore.xml -->
0 commit comments