Add example for enabling the feature

This commit is contained in:
lukinovec 2022-09-30 15:32:34 +02:00
parent 1ebe794a8f
commit bfd193f88e

View file

@ -6,4 +6,11 @@ section: content
# Vite bundler {#vite-bundler}
Enabling the ViteBundler feature makes Vite generate the correct asset paths using the `global_asset()` helper.
Enabling the ViteBundler feature makes Vite generate the correct asset paths using the `global_asset()` helper. To enable the feature, uncomment `Stancl\Tenancy\Features\ViteBundler::class` in tenancy config's `features`.
```php
'features' => [
// [...]
Stancl\Tenancy\Features\ViteBundler::class,
],
```