* allow use dev vitejs build without manifest reader
This commit is contained in:
@ -61,6 +61,10 @@ class TwigFilters
|
||||
$bundler->validateBundlerType(Bundler::BUNDLER_VITE);
|
||||
assert($bundler instanceof ViteBundler);
|
||||
|
||||
if ($bundler->isViteDevEnabled()) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $bundler->getEntrypointStylesheets($entrypointName);
|
||||
}
|
||||
|
||||
@ -76,7 +80,11 @@ class TwigFilters
|
||||
$bundler->validateBundlerType(Bundler::BUNDLER_VITE);
|
||||
assert($bundler instanceof ViteBundler);
|
||||
|
||||
return $bundler->getEntrypointAssets($entrypointName);
|
||||
if ($bundler->isViteDevEnabled()) {
|
||||
return $bundler->getScriptTag($entrypointName);
|
||||
} else {
|
||||
return $bundler->getEntrypointAssets($entrypointName);
|
||||
}
|
||||
}
|
||||
|
||||
public static function viteDevClientScriptTag()
|
||||
|
Reference in New Issue
Block a user