Skip to content

Commit ed311e8

Browse files
committed
🧑‍💻 Alias the Foundation Vite class in the container
1 parent 54c5007 commit ed311e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Roots/Acorn/Assets/AssetsServiceProvider.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Roots\Acorn\Assets;
44

5+
use Illuminate\Foundation\Vite as FoundationVite;
56
use Illuminate\Support\ServiceProvider;
67
use Roots\Acorn\Assets\View\BladeDirective;
78

@@ -20,6 +21,8 @@ public function register()
2021

2122
$this->app->singleton('assets.vite', Vite::class);
2223

24+
$this->app->alias(Vite::class, FoundationVite::class);
25+
2326
$this->app->singleton('assets.manifest', function ($app) {
2427
return $app['assets']->manifest($this->getDefaultManifest());
2528
});

0 commit comments

Comments
 (0)