mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 10:52:14 +02:00
wip
This commit is contained in:
@ -166,10 +166,6 @@ final class JsModuleGraph
|
|||||||
|
|
||||||
private static function fingerprint(string $projectRoot): ?string
|
private static function fingerprint(string $projectRoot): ?string
|
||||||
{
|
{
|
||||||
if (! self::hasViteConfig($projectRoot)) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
$parts = [];
|
$parts = [];
|
||||||
|
|
||||||
foreach (self::VITE_CONFIG_NAMES as $name) {
|
foreach (self::VITE_CONFIG_NAMES as $name) {
|
||||||
@ -188,6 +184,10 @@ final class JsModuleGraph
|
|||||||
.':'.($bytes === false ? '' : hash('sha256', $bytes));
|
.':'.($bytes === false ? '' : hash('sha256', $bytes));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($parts === []) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (['Pages', 'pages'] as $dir) {
|
foreach (['Pages', 'pages'] as $dir) {
|
||||||
if (is_dir($projectRoot.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'js'.DIRECTORY_SEPARATOR.$dir)) {
|
if (is_dir($projectRoot.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'js'.DIRECTORY_SEPARATOR.$dir)) {
|
||||||
$parts[] = 'pagesDir:'.$dir;
|
$parts[] = 'pagesDir:'.$dir;
|
||||||
|
|||||||
Reference in New Issue
Block a user