mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-15 03:34:03 +00:00
18 lines
483 B
Markdown
18 lines
483 B
Markdown
---
|
|
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,
|
|
],
|
|
```
|