Skip to content

Commit 7c51d40

Browse files
[AssetMapper] Exclude dot files
1 parent 9ca8dc1 commit 7c51d40

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:: 7.1
955+
956+
The ``exclude_dotfiles`` option was introduced in Symfony 7.1.
957+
939958
.. _config-importmap-polyfill:
940959

941960
``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