From 4d2549a9066c432eb67ef1651cb0e22dbd365790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wilsen=20Hern=C3=A1ndez?= Date: Sun, 25 Sep 2022 09:50:08 -0400 Subject: [PATCH] Move Vite bundler to an Optional Feature --- assets/config.php | 1 + src/Features/ViteBundler.php | 19 +++++++++++++++++++ src/TenancyServiceProvider.php | 3 --- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 src/Features/ViteBundler.php diff --git a/assets/config.php b/assets/config.php index 09222b78..704c5023 100644 --- a/assets/config.php +++ b/assets/config.php @@ -169,6 +169,7 @@ return [ // Stancl\Tenancy\Features\UniversalRoutes::class, // Stancl\Tenancy\Features\TenantConfig::class, // https://tenancyforlaravel.com/docs/v3/features/tenant-config // Stancl\Tenancy\Features\CrossDomainRedirect::class, // https://tenancyforlaravel.com/docs/v3/features/cross-domain-redirect + // Stancl\Tenancy\Features\ViteBundler::class, ], /** diff --git a/src/Features/ViteBundler.php b/src/Features/ViteBundler.php new file mode 100644 index 00000000..76f2a8a8 --- /dev/null +++ b/src/Features/ViteBundler.php @@ -0,0 +1,19 @@ +app->singleton(BaseVite::class, Vite::class); - $this->app->bind('globalCache', function ($app) { return new CacheManager($app); });