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 @@ -953,6 +953,25 @@ This is a list of glob patterns that will be excluded from the asset map:
953
953
You can use the ``debug:asset-map `` command to double-check that the files
954
954
you expect are being included in the asset map.
955
955
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
+
956
975
.. _config-importmap-polyfill :
957
976
958
977
``framework.asset_mapper.importmap_polyfill ``
You can’t perform that action at this time.
0 commit comments