Wayfinder Vite Plugin

May 29, 2025 ยท View on GitHub

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"],
        }),
        // ...
    ],
});

Contributing

Thank you for considering contributing to the Wayfinder Vite Plugin! You can read the contribution guide here.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

The Wayfinder Vite Plugin is open-sourced software licensed under the MIT license.