8000 feature #19188 [AssetMapper] Exclude dot files (alexandre-daubois) · symfony/symfony-docs@339f144 · GitHub
[go: up one dir, main page]

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 Commi 10000 ts ------- 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)
0