Vite plugin for Wayfinder.
import { wayfinder } from "@laravel/vite-plugin-wayfinder";
export default defineConfig({
plugins: [
wayfinder(),
// ...
],
});
All options have sensible defaults, but should you need to customize anything:
import { wayfinder } from "@laravel/vite-plugin-wayfinder";
export default defineConfig({
plugins: [
wayfinder({
path: "my/custom/path/to/js",
command: "herd php artisan wayfinder:generate",
routes: false,
actions: true,
formVariants: false,
patterns: ["resources/**/myroutes/*.php"],
}),
// ...
],
});
Thank you for considering contributing to the Wayfinder Vite Plugin! You can read the contribution guide here.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Please review our security policy on how to report security vulnerabilities.
The Wayfinder Vite Plugin is open-sourced software licensed under the MIT license.