Skip to content

Commit 4eb7a1f

Browse files
committed
Update README.md
1 parent 78f86fb commit 4eb7a1f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,18 @@ npm i -D vite-plugin-run
2626
Then, update your application's `vite.config.js` file to watch for changes to your application's routes and controllers:
2727

2828
```ts
29-
import { run } from "vite-plugin-run";
29+
import { wayfinder } from "@laravel/vite-plugin-wayfinder";
3030

3131
export default defineConfig({
3232
plugins: [
33+
wayfinder(),
3334
// ...
34-
run([
35-
{
36-
name: "wayfinder",
37-
run: ["php", "artisan", "wayfinder:generate"],
38-
pattern: ["routes/**/*.php", "app/**/Http/**/*.php"],
39-
},
40-
]),
4135
],
4236
});
4337
```
4438

39+
[Wayfinder vite plugin documentation](https://github.com/laravel/vite-plugin-wayfinder).
40+
4541
## Generating TypeScript Definitions
4642

4743
The `wayfinder:generate` command can be used to generate TypeScript definitions for your routes and controller methods:

0 commit comments

Comments
 (0)