diff --git a/lib/internal/Magento/Framework/App/Utility/Files.php b/lib/internal/Magento/Framework/App/Utility/Files.php index b694cd9415de5..d56864a577db8 100644 --- a/lib/internal/Magento/Framework/App/Utility/Files.php +++ b/lib/internal/Magento/Framework/App/Utility/Files.php @@ -890,6 +890,16 @@ private function accumulateThemeStaticFiles($area, $locale, $filePattern, &$resu throw new \UnexpectedValueException("Could not parse theme static file '$file'"); } } + + if (!$files) { + $result[] = [ + $themeArea, + $themePackage->getVendor() . '/' . $themePackage->getName(), + null, + null, + null, + ]; + } } } }