diff --git a/src/AssetFiles.php b/src/AssetFiles.php index a1e68e64..d59f5217 100644 --- a/src/AssetFiles.php +++ b/src/AssetFiles.php @@ -31,7 +31,7 @@ public static function get($path) ->notName('mix-manifest.json') ->notName('*.php') ->ignoreVcs(true) - ->ignoreDotFiles(true) + ->ignoreDotFiles(!Manifest::dotFilesAsAssets()) ->sortByName(); } diff --git a/src/Manifest.php b/src/Manifest.php index 4696674c..a97ebf2e 100644 --- a/src/Manifest.php +++ b/src/Manifest.php @@ -67,6 +67,16 @@ public static function shouldSeparateVendor() return static::current()['separate-vendor'] ?? false; } + /** + * Determine if we should interpret dot files in the public directory as assets. + * + * @return bool + */ + public static function dotFilesAsAssets() + { + return static::current()['dot-files-as-assets'] ?? false; + } + /** * Write a fresh manifest file for the given project. *