mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Document the ViteBundler feature (#209)
* Document the ViteBundler feature * Fix formatting * Remove Vite integration page, make links to the integration page link to the feature page * Add example for enabling the feature * improve writing Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
5f9f141580
commit
31a64ab28f
4 changed files with 23 additions and 0 deletions
18
source/docs/v3/features/vite-bundler.blade.md
Normal file
18
source/docs/v3/features/vite-bundler.blade.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
title: Vite bundler
|
||||
extends: _layouts.documentation
|
||||
section: content
|
||||
---
|
||||
|
||||
# Vite bundler {#vite-bundler}
|
||||
|
||||
Enabling the `ViteBundler` feature makes Vite generate correct asset paths by using the `global_asset()` helper instead of the default `asset()` helper.
|
||||
|
||||
To enable the feature, uncomment `Stancl\Tenancy\Features\ViteBundler::class` in the `features` section of the tenancy config:
|
||||
|
||||
```php
|
||||
'features' => [
|
||||
// [...]
|
||||
Stancl\Tenancy\Features\ViteBundler::class,
|
||||
],
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue