Skip to content

Commit c93b717

Browse files
shiftedrealityhostep
authored andcommitted
Backport of MAGETWO-52102 for Magento 2.1: [Github] Custom theme static content won't deploy without overriding at least one static content file #3754
(cherry picked from commit 6a9744d)
1 parent 6065b1c commit c93b717

File tree

1 file changed

+10
-0
lines changed
  • lib/internal/Magento/Framework/App/Utility

1 file changed

+10
-0
lines changed

lib/internal/Magento/Framework/App/Utility/Files.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,16 @@ private function accumulateThemeStaticFiles($area, $locale, $filePattern, &$resu
890890
throw new \UnexpectedValueException("Could not parse theme static file '$file'");
891891
}
892892
}
893+
894+
if (!$files) {
895+
$result[] = [
896+
$themeArea,
897+
$themePackage->getVendor() . '/' . $themePackage->getName(),
898+
null,
899+
null,
900+
null,
901+
];
902+
}
893903
}
894904
}
895905
}

0 commit comments

Comments
 (0)