File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff 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
937937you 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 ``
You can’t perform that action at this time.
0 commit comments