Skip to content

Commit e58b8ce

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: - [AssetMapper] Exclude dot files
2 parents 9ca8dc1 + 7c2bc1f commit e58b8ce

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

frontend/asset_mapper.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,25 @@ This is a list of glob patterns that will be excluded from the asset map:
936936
You can use the ``debug:asset-map`` command to double-check that the files
937937
you expect are being included in the asset map.
938938

939+
``framework.asset_mapper.exclude_dotfiles``
940+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
941+
942+
Whether to exclude any file starting with a ``.`` from the asset mapper. This
943+
is useful if you want to avoid leaking sensitive files like ``.env`` or
944+
``.gitignore`` in the files published by the asset mapper.
945+
946+
.. code-block:: yaml
947+
948+
framework:
949+
asset_mapper:
950+
exclude_dotfiles: true
951+
952+
This option is enabled by default.
953+
954+
.. versionadded:: 6.4
955+
956+
The ``exclude_dotfiles`` option was introduced in Symfony 6.4.
957+
939958
.. _config-importmap-polyfill:
940959

941960
``framework.asset_mapper.importmap_polyfill``

0 commit comments

Comments
 (0)