remove mix; add vite

Signed-off-by: envoyr <hello@envoyr.com>
This commit is contained in:
envoyr
2023-10-16 12:48:35 +02:00
parent 7438786a24
commit 0f37dfb1eb
52 changed files with 999 additions and 8755 deletions

View File

@@ -92,6 +92,10 @@ class FroxlorTwig extends AbstractExtension
new TwigFunction('mix', [
$this,
'getMix'
]),
new TwigFunction('vite', [
$this,
'getVite'
])
];
}
@@ -167,4 +171,9 @@ class FroxlorTwig extends AbstractExtension
{
return mix($mix);
}
public function getVite($basehref = '', $vite = [], $defaults = [])
{
return vite($basehref, $vite ?? $defaults);
}
}