Skip to content

Commit 339f144

Browse files
committed
feature #19188 [AssetMapper] Exclude dot files (alexandre-daubois)
This PR was submitted for the 7.1 branch but it was merged into the 6.4 branch instead. Discussion ---------- [AssetMapper] Exclude dot files Fix #19182 Commits ------- ab2e07b [AssetMapper] Exclude dot files
2 parents 31d958c + ab2e07b commit 339f144

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
@@ -953,6 +953,25 @@ This is a list of glob patterns that will be excluded from the asset map:
953953
You can use the ``debug:asset-map`` command to double-check that the files
954954
you expect are being included in the asset map.
955955

956+
``framework.asset_mapper.exclude_dotfiles``
957+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
958+
959+
Whether to exclude any file starting with a ``.`` from the asset mapper. This
960+
is useful if you want to avoid leaking sensitive files like ``.env`` or
961+
``.gitignore`` in the files published by the asset mapper.
962+
963+
.. code-block:: yaml
964+
965+
framework:
966+
asset_mapper:
967+
exclude_dotfiles: true
968+
969+
This option is enabled by default.
970+
971+
.. versionadded:: 7.1
972+
973+
The ``exclude_dotfiles`` option was introduced in Symfony 7.1.
974+
956975
.. _config-importmap-polyfill:
957976

958977
``framework.asset_mapper.importmap_polyfill``

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy