mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
Document the ViteBundler feature
This commit is contained in:
parent
f84ab20c5e
commit
423061d888
5 changed files with 22 additions and 0 deletions
|
|
@ -156,6 +156,7 @@ return [
|
|||
'Tenant Config' => 'features/tenant-config',
|
||||
'Cross-domain redirect' => 'features/cross-domain-redirect',
|
||||
'Universal routes' => 'features/universal-routes',
|
||||
'Vite bundler' => 'features/vite-bundler',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
@ -207,6 +208,7 @@ return [
|
|||
'Livewire' => 'integrations/livewire',
|
||||
'Orchid' => 'integrations/orchid',
|
||||
'Sanctum' => 'integrations/sanctum',
|
||||
'Vite' => 'integrations/vite',
|
||||
],
|
||||
],
|
||||
'Console commands' => 'console-commands',
|
||||
|
|
|
|||
9
source/docs/v3/features/vite-bundler.blade.md
Normal file
9
source/docs/v3/features/vite-bundler.blade.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: Vite bundler
|
||||
extends: _layouts.documentation
|
||||
section: content
|
||||
---
|
||||
|
||||
# Vite bundler {#vite-bundler}
|
||||
|
||||
Enabling the ViteBundler feature makes Vite generate the correct asset paths using the `global_asset()` helper.
|
||||
|
|
@ -16,3 +16,4 @@ If you're using the [automatic mode]({{ $page->link('automatic-mode') }}) & [mul
|
|||
- [Laravel Telescope]({{ $page->link('integrations/telescope') }})
|
||||
- [Livewire]({{ $page->link('integrations/livewire') }})
|
||||
- [Laravel Sanctum]({{ $page->link('integrations/sanctum') }})
|
||||
- [Vite]({{ $page->link('integrations/vite') }})
|
||||
|
|
|
|||
9
source/docs/v3/integrations/vite.blade.md
Normal file
9
source/docs/v3/integrations/vite.blade.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: Vite integration
|
||||
extends: _layouts.documentation
|
||||
section: content
|
||||
---
|
||||
|
||||
# Vite {#vite}
|
||||
|
||||
Enable the ViteBundler feature in the `tenancy.features` config to make Vite generate asset paths correctly.
|
||||
|
|
@ -13,6 +13,7 @@ section: content
|
|||
- [`TenantConfig`]({{ $page->link('features/tenant-config') }}) for mapping keys from the tenant storage into the application config
|
||||
- [`CrossDomainRedirect`]({{ $page->link('features/cross-domain-redirect') }}) for adding a `domain()` macro on `RedirectResponse` letting you change the intended hostname of the generated route
|
||||
- [`UniversalRoutes`]({{ $page->link('features/universal-routes') }}) for route actions that work in both the central & tenant context
|
||||
- [`ViteBundler`]({{ $page->link('features/vite-bundler') }}) for making Vite generate the correct asset paths
|
||||
All of the package's Features are in the `Stancl\Tenancy\Features` namespace.
|
||||
|
||||
You may register features by adding their class names to the `tenancy.features` config.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue